diff options
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r-- | fs/ext4/namei.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 1421ec1cd7e4..26f114b1e4d6 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -1226,8 +1226,7 @@ static struct buffer_head * ext4_find_entry (struct inode *dir, | |||
1226 | buffer */ | 1226 | buffer */ |
1227 | int num = 0; | 1227 | int num = 0; |
1228 | ext4_lblk_t nblocks; | 1228 | ext4_lblk_t nblocks; |
1229 | int i, err = 0; | 1229 | int i, namelen; |
1230 | int namelen; | ||
1231 | 1230 | ||
1232 | *res_dir = NULL; | 1231 | *res_dir = NULL; |
1233 | sb = dir->i_sb; | 1232 | sb = dir->i_sb; |
@@ -1293,10 +1292,10 @@ restart: | |||
1293 | break; | 1292 | break; |
1294 | } | 1293 | } |
1295 | num++; | 1294 | num++; |
1296 | bh = ext4_getblk(NULL, dir, b++, 0, &err); | 1295 | bh = ext4_getblk(NULL, dir, b++, 0); |
1297 | if (unlikely(err)) { | 1296 | if (unlikely(IS_ERR(bh))) { |
1298 | if (ra_max == 0) | 1297 | if (ra_max == 0) |
1299 | return ERR_PTR(err); | 1298 | return bh; |
1300 | break; | 1299 | break; |
1301 | } | 1300 | } |
1302 | bh_use[ra_max] = bh; | 1301 | bh_use[ra_max] = bh; |