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>
This commit is contained in:
Tao Ma 2009-01-05 14:45:24 +08:00 committed by Mark Fasheh
parent dad7d975e4
commit 9047beabb8
1 changed files with 2 additions and 2 deletions

View File

@ -3402,8 +3402,8 @@ static int ocfs2_merge_rec_left(struct inode *inode,
has_empty_extent = 1;
}
ret = ocfs2_path_bh_journal_access(handle, inode, left_path,
path_num_items(left_path) - 1);
ret = ocfs2_path_bh_journal_access(handle, inode, right_path,
path_num_items(right_path) - 1);
if (ret) {
mlog_errno(ret);
goto out;