aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ocfs2/dir.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c
index ef2bb856f731..60be3ba1f5dc 100644
--- a/fs/ocfs2/dir.c
+++ b/fs/ocfs2/dir.c
@@ -302,14 +302,13 @@ restart:
302 } 302 }
303 if ((bh = bh_use[ra_ptr++]) == NULL) 303 if ((bh = bh_use[ra_ptr++]) == NULL)
304 goto next; 304 goto next;
305 wait_on_buffer(bh); 305 if (ocfs2_read_block(dir, block, &bh)) {
306 if (!buffer_uptodate(bh)) { 306 /* read error, skip block & hope for the best.
307 /* read error, skip block & hope for the best */ 307 * ocfs2_read_block() has released the bh. */
308 ocfs2_error(dir->i_sb, "reading directory %llu, " 308 ocfs2_error(dir->i_sb, "reading directory %llu, "
309 "offset %lu\n", 309 "offset %lu\n",
310 (unsigned long long)OCFS2_I(dir)->ip_blkno, 310 (unsigned long long)OCFS2_I(dir)->ip_blkno,
311 block); 311 block);
312 brelse(bh);
313 goto next; 312 goto next;
314 } 313 }
315 i = ocfs2_search_dirblock(bh, dir, name, namelen, 314 i = ocfs2_search_dirblock(bh, dir, name, namelen,