Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus' of git://git.infradead.org/ubi-2.6

* 'for-linus' of git://git.infradead.org/ubi-2.6:
UBIFS: fix assertion warning and refine comments
UBIFS: kill CONFIG_UBIFS_FS_DEBUG_CHKS
UBIFS: use GFP_NOFS properly
UBI: use GFP_NOFS properly

+14 -20
+2 -2
drivers/mtd/ubi/io.c
··· 1345 1345 if (!(ubi_chk_flags & UBI_CHK_IO)) 1346 1346 return 0; 1347 1347 1348 - buf1 = __vmalloc(len, GFP_KERNEL | GFP_NOFS, PAGE_KERNEL); 1348 + buf1 = __vmalloc(len, GFP_NOFS, PAGE_KERNEL); 1349 1349 if (!buf1) { 1350 1350 ubi_err("cannot allocate memory to check writes"); 1351 1351 return 0; ··· 1409 1409 if (!(ubi_chk_flags & UBI_CHK_IO)) 1410 1410 return 0; 1411 1411 1412 - buf = __vmalloc(len, GFP_KERNEL | GFP_NOFS, PAGE_KERNEL); 1412 + buf = __vmalloc(len, GFP_NOFS, PAGE_KERNEL); 1413 1413 if (!buf) { 1414 1414 ubi_err("cannot allocate memory to check for 0xFFs"); 1415 1415 return 0;
-9
fs/ubifs/Kconfig
··· 58 58 down UBIFS. You can then further enable / disable individual debugging 59 59 features using UBIFS module parameters and the corresponding sysfs 60 60 interfaces. 61 - 62 - config UBIFS_FS_DEBUG_CHKS 63 - bool "Enable extra checks" 64 - depends on UBIFS_FS_DEBUG 65 - help 66 - If extra checks are enabled UBIFS will check the consistency of its 67 - internal data structures during operation. However, UBIFS performance 68 - is dramatically slower when this option is selected especially if the 69 - file system is large.
+1 -1
fs/ubifs/debug.c
··· 818 818 printk(KERN_DEBUG "(pid %d) start dumping LEB %d\n", 819 819 current->pid, lnum); 820 820 821 - buf = __vmalloc(c->leb_size, GFP_KERNEL | GFP_NOFS, PAGE_KERNEL); 821 + buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL); 822 822 if (!buf) { 823 823 ubifs_err("cannot allocate memory for dumping LEB %d", lnum); 824 824 return;
+7 -4
fs/ubifs/file.c
··· 448 448 if (!(pos & ~PAGE_CACHE_MASK) && len == PAGE_CACHE_SIZE) { 449 449 /* 450 450 * We change whole page so no need to load it. But we 451 - * have to set the @PG_checked flag to make the further 452 - * code know that the page is new. This might be not 453 - * true, but it is better to budget more than to read 454 - * the page from the media. 451 + * do not know whether this page exists on the media or 452 + * not, so we assume the latter because it requires 453 + * larger budget. The assumption is that it is better 454 + * to budget a bit more than to read the page from the 455 + * media. Thus, we are setting the @PG_checked flag 456 + * here. 455 457 */ 456 458 SetPageChecked(page); 457 459 skipped_read = 1; ··· 561 559 dbg_gen("copied %d instead of %d, read page and repeat", 562 560 copied, len); 563 561 cancel_budget(c, page, ui, appending); 562 + ClearPageChecked(page); 564 563 565 564 /* 566 565 * Return 0 to force VFS to repeat the whole operation, or the
+1 -1
fs/ubifs/lprops.c
··· 1094 1094 } 1095 1095 } 1096 1096 1097 - buf = __vmalloc(c->leb_size, GFP_KERNEL | GFP_NOFS, PAGE_KERNEL); 1097 + buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL); 1098 1098 if (!buf) { 1099 1099 ubifs_err("cannot allocate memory to scan LEB %d", lnum); 1100 1100 goto out;
+2 -2
fs/ubifs/lpt_commit.c
··· 1633 1633 if (!(ubifs_chk_flags & UBIFS_CHK_LPROPS)) 1634 1634 return 0; 1635 1635 1636 - buf = p = __vmalloc(c->leb_size, GFP_KERNEL | GFP_NOFS, PAGE_KERNEL); 1636 + buf = p = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL); 1637 1637 if (!buf) { 1638 1638 ubifs_err("cannot allocate memory for ltab checking"); 1639 1639 return 0; ··· 1885 1885 1886 1886 printk(KERN_DEBUG "(pid %d) start dumping LEB %d\n", 1887 1887 current->pid, lnum); 1888 - buf = p = __vmalloc(c->leb_size, GFP_KERNEL | GFP_NOFS, PAGE_KERNEL); 1888 + buf = p = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL); 1889 1889 if (!buf) { 1890 1890 ubifs_err("cannot allocate memory to dump LPT"); 1891 1891 return;
+1 -1
fs/ubifs/orphan.c
··· 898 898 if (c->no_orphs) 899 899 return 0; 900 900 901 - buf = __vmalloc(c->leb_size, GFP_KERNEL | GFP_NOFS, PAGE_KERNEL); 901 + buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL); 902 902 if (!buf) { 903 903 ubifs_err("cannot allocate memory to check orphans"); 904 904 return 0;