Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234102
b: refs/heads/master
c: bbd562d
h: refs/heads/master
v: v3
  • Loading branch information
Wim Van Sebroeck committed Mar 14, 2011
1 parent a9f1942 commit b0a07a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1eafbfeb7bdf59cfe173304c76188f3fd5f1fd05
refs/heads/master: bbd562d717a84c6464211e8bd5efa0d9e25edc6d
2 changes: 1 addition & 1 deletion trunk/drivers/watchdog/cpwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ static int __devexit cpwd_remove(struct platform_device *op)
struct cpwd *p = dev_get_drvdata(&op->dev);
int i;

for (i = 0; i < 4; i++) {
for (i = 0; i < WD_NUMDEVS; i++) {
misc_deregister(&p->devs[i].misc);

if (!p->enabled) {
Expand Down
12 changes: 2 additions & 10 deletions trunk/fs/partitions/osf.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
#include "check.h"
#include "osf.h"

#define MAX_OSF_PARTITIONS 8

int osf_partition(struct parsed_partitions *state)
{
int i;
int slot = 1;
unsigned int npartitions;
Sector sect;
unsigned char *data;
struct disklabel {
Expand Down Expand Up @@ -48,7 +45,7 @@ int osf_partition(struct parsed_partitions *state)
u8 p_fstype;
u8 p_frag;
__le16 p_cpg;
} d_partitions[MAX_OSF_PARTITIONS];
} d_partitions[8];
} * label;
struct d_partition * partition;

Expand All @@ -66,12 +63,7 @@ int osf_partition(struct parsed_partitions *state)
put_dev_sector(sect);
return 0;
}
npartitions = le16_to_cpu(label->d_npartitions);
if (npartitions > MAX_OSF_PARTITIONS) {
put_dev_sector(sect);
return 0;
}
for (i = 0 ; i < npartitions; i++, partition++) {
for (i = 0 ; i < le16_to_cpu(label->d_npartitions); i++, partition++) {
if (slot == state->limit)
break;
if (le32_to_cpu(partition->p_size))
Expand Down
6 changes: 1 addition & 5 deletions trunk/mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1762,10 +1762,6 @@ static void collapse_huge_page(struct mm_struct *mm,
#ifndef CONFIG_NUMA
VM_BUG_ON(!*hpage);
new_page = *hpage;
if (unlikely(mem_cgroup_newpage_charge(new_page, mm, GFP_KERNEL))) {
up_read(&mm->mmap_sem);
return;
}
#else
VM_BUG_ON(*hpage);
/*
Expand All @@ -1785,12 +1781,12 @@ static void collapse_huge_page(struct mm_struct *mm,
*hpage = ERR_PTR(-ENOMEM);
return;
}
#endif
if (unlikely(mem_cgroup_newpage_charge(new_page, mm, GFP_KERNEL))) {
up_read(&mm->mmap_sem);
put_page(new_page);
return;
}
#endif

/* after allocating the hugepage upgrade to mmap_sem write mode */
up_read(&mm->mmap_sem);
Expand Down

0 comments on commit b0a07a0

Please sign in to comment.