aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-01-05 01:45:24 -0500
committerMark Fasheh <mfasheh@suse.com>2009-01-05 11:40:37 -0500
commit9047beabb8a396f0b18de1e4a9ab920cf92054af (patch)
treeabb7ea8752cd3e2fdfeaaf1609aed155d919aa7d
parentdad7d975e4bd893c79fd122105b37b9a1776816a (diff)
ocfs2: Access the right buffer_head in ocfs2_merge_rec_left.
In commit "ocfs2: Use metadata-specific ocfs2_journal_access_*() functions", the wrong buffer_head is accessed. So change it to the right buffer_head. Signed-off-by: Tao Ma <tao.ma@oracle.com> Acked-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
-rw-r--r--fs/ocfs2/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 874c0bd9e1cc..54ff4c77aaa3 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -3402,8 +3402,8 @@ static int ocfs2_merge_rec_left(struct inode *inode,
3402 has_empty_extent = 1; 3402 has_empty_extent = 1;
3403 } 3403 }
3404 3404
3405 ret = ocfs2_path_bh_journal_access(handle, inode, left_path, 3405 ret = ocfs2_path_bh_journal_access(handle, inode, right_path,
3406 path_num_items(left_path) - 1); 3406 path_num_items(right_path) - 1);
3407 if (ret) { 3407 if (ret) {
3408 mlog_errno(ret); 3408 mlog_errno(ret);
3409 goto out; 3409 goto out;