ocfs2: Access the right buffer_head in ocfs2_merge_rec_left.
authorTao Ma <tao.ma@oracle.com>
Mon, 5 Jan 2009 06:45:24 +0000 (14:45 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:37 +0000 (08:40 -0800)
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>
fs/ocfs2/alloc.c

index 874c0bd9e1cc1fea8393c5d1b282dcf816f7e33c..54ff4c77aaa30c9eee1b001e2d7cd79fbff82cc1 100644 (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;