Merge branch 'akpm' (patches from Andrew)
Merge more updates from Andrew Morton: - procfs updates - various misc bits - lib/ updates - epoll updates - autofs - fatfs - a few more MM bits * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (58 commits) mm/page_io.c: fix polled swap page in checkpatch: add Co-developed-by to signature tags docs: fix Co-Developed-by docs drivers/base/platform.c: kmemleak ignore a known leak fs: don't open code lru_to_page() fs/: remove caller signal_pending branch predictions mm/: remove caller signal_pending branch predictions arch/arc/mm/fault.c: remove caller signal_pending_branch predictions kernel/sched/: remove caller signal_pending branch predictions kernel/locking/mutex.c: remove caller signal_pending branch predictions mm: select HAVE_MOVE_PMD on x86 for faster mremap mm: speed up mremap by 20x on large regions mm: treewide: remove unused address argument from pte_alloc functions initramfs: cleanup incomplete rootfs scripts/gdb: fix lx-version string output kernel/kcov.c: mark write_comp_data() as notrace kernel/sysctl: add panic_print into sysctl panic: add options to print system info when panic happens bfs: extra sanity checking and static inode bitmap exec: separate MM_ANONPAGES and RLIMIT_STACK accounting ...
This commit is contained in:
@@ -57,7 +57,7 @@ static inline void fat_dir_readahead(struct inode *dir, sector_t iblock,
|
||||
if ((iblock & (sbi->sec_per_clus - 1)) || sbi->sec_per_clus == 1)
|
||||
return;
|
||||
/* root dir of FAT12/FAT16 */
|
||||
if ((sbi->fat_bits != 32) && (dir->i_ino == MSDOS_ROOT_INO))
|
||||
if (!is_fat32(sbi) && (dir->i_ino == MSDOS_ROOT_INO))
|
||||
return;
|
||||
|
||||
bh = sb_find_get_block(sb, phys);
|
||||
@@ -1313,7 +1313,7 @@ int fat_add_entries(struct inode *dir, void *slots, int nr_slots,
|
||||
}
|
||||
}
|
||||
if (dir->i_ino == MSDOS_ROOT_INO) {
|
||||
if (sbi->fat_bits != 32)
|
||||
if (!is_fat32(sbi))
|
||||
goto error;
|
||||
} else if (MSDOS_I(dir)->i_start == 0) {
|
||||
fat_msg(sb, KERN_ERR, "Corrupted directory (i_pos %lld)",
|
||||
|
Reference in New Issue
Block a user