From: OGAWA Hirofumi We don't need to allocate buffer for checking the buffer is uptodate. This use sb_find_get_block() instead, and if it returns NULL it's not uptodate. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton --- fs/fat/dir.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN fs/fat/dir.c~fat-use-sb_find_get_block-instead-of-sb_getblk fs/fat/dir.c --- 25/fs/fat/dir.c~fat-use-sb_find_get_block-instead-of-sb_getblk Mon Nov 7 17:02:03 2005 +++ 25-akpm/fs/fat/dir.c Mon Nov 7 17:02:03 2005 @@ -45,8 +45,8 @@ static inline void fat_dir_readahead(str if ((sbi->fat_bits != 32) && (dir->i_ino == MSDOS_ROOT_INO)) return; - bh = sb_getblk(sb, phys); - if (bh && !buffer_uptodate(bh)) { + bh = sb_find_get_block(sb, phys); + if (bh == NULL || !buffer_uptodate(bh)) { for (sec = 0; sec < sbi->sec_per_clus; sec++) sb_breadahead(sb, phys + sec); } _