]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/ocfs2/ioctl.c
xfs: move the dir2 leaf header size to struct xfs_da_geometry
[linux.git] / fs / ocfs2 / ioctl.c
index d6f7b299eb236d4b176e653babdb4f1261cb9584..efeea208fdebd6541c11983fe91761bb83f307cb 100644 (file)
@@ -283,7 +283,7 @@ static int ocfs2_info_scan_inode_alloc(struct ocfs2_super *osb,
        if (inode_alloc)
                inode_lock(inode_alloc);
 
-       if (o2info_coherent(&fi->ifi_req)) {
+       if (inode_alloc && o2info_coherent(&fi->ifi_req)) {
                status = ocfs2_inode_lock(inode_alloc, &bh, 0);
                if (status < 0) {
                        mlog_errno(status);