Commit 9047beab authored by Tao Ma's avatar Tao Ma Committed by Mark Fasheh

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: default avatarTao Ma <tao.ma@oracle.com>
Acked-by: default avatarJoel Becker <joel.becker@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent dad7d975
...@@ -3402,8 +3402,8 @@ static int ocfs2_merge_rec_left(struct inode *inode, ...@@ -3402,8 +3402,8 @@ static int ocfs2_merge_rec_left(struct inode *inode,
has_empty_extent = 1; has_empty_extent = 1;
} }
ret = ocfs2_path_bh_journal_access(handle, inode, left_path, ret = ocfs2_path_bh_journal_access(handle, inode, right_path,
path_num_items(left_path) - 1); path_num_items(right_path) - 1);
if (ret) { if (ret) {
mlog_errno(ret); mlog_errno(ret);
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment