diff --git a/[refs] b/[refs] index f0fca9d84385..caa9a12c8f06 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a6bf6b211cdb92c315c24719a522d8b6f3998210 +refs/heads/master: 83b7c996dc859c7b53f94d46ee5c5929cc0399e2 diff --git a/trunk/fs/fat/dir.c b/trunk/fs/fat/dir.c index ba824964b9bb..b2a26cd226b5 100644 --- a/trunk/fs/fat/dir.c +++ b/trunk/fs/fat/dir.c @@ -45,8 +45,8 @@ static inline void fat_dir_readahead(struct inode *dir, sector_t iblock, 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); }