]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ocfs2/namei.c
ocfs2: Require an inode for ocfs2_read_block(s)().
[linux-2.6-omap-h63xx.git] / fs / ocfs2 / namei.c
index 7d0dd5c95eb310966f2a37171f4c77b703126ab2..e5fc9345dd3601818bf58a1fc967a0640b73174f 100644 (file)
@@ -1752,10 +1752,9 @@ static int ocfs2_orphan_add(struct ocfs2_super *osb,
 
        mlog_entry("(inode->i_ino = %lu)\n", inode->i_ino);
 
-       status = ocfs2_read_block(osb,
+       status = ocfs2_read_block(orphan_dir_inode,
                                  OCFS2_I(orphan_dir_inode)->ip_blkno,
-                                 &orphan_dir_bh, OCFS2_BH_CACHED,
-                                 orphan_dir_inode);
+                                 &orphan_dir_bh, OCFS2_BH_CACHED);
        if (status < 0) {
                mlog_errno(status);
                goto leave;