ocfs2: return ENOMEM when sb_getblk() fails
[linux-2.6-block.git] / fs / ocfs2 / namei.c
index be3f8676a4385970f0edc92fff291c997c3d2823..4f791f6d27d0463f8bef77dc20a5f5274df8ddea 100644 (file)
@@ -489,7 +489,7 @@ static int __ocfs2_mknod_locked(struct inode *dir,
 
        *new_fe_bh = sb_getblk(osb->sb, fe_blkno);
        if (!*new_fe_bh) {
-               status = -EIO;
+               status = -ENOMEM;
                mlog_errno(status);
                goto leave;
        }