]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ocfs2: xattr: remove useless free space checking
authorJunxiao Bi <junxiao.bi@oracle.com>
Thu, 27 Jun 2013 23:51:06 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:17 +0000 (16:37 +1000)
Free space checking will be done in ocfs2_xattr_ibody_init().  So remove
here.

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/xattr.c

index 2e3ea308c14430640fe3a28f35d5149fc3d7cdf0..6c98d7d83c4354a4bebcf848c4a517a828771bd2 100644 (file)
@@ -2758,13 +2758,6 @@ static int ocfs2_xattr_ibody_set(struct inode *inode,
                return -ENOSPC;
 
        down_write(&oi->ip_alloc_sem);
-       if (!(oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL)) {
-               if (!ocfs2_xattr_has_space_inline(inode, di)) {
-                       ret = -ENOSPC;
-                       goto out;
-               }
-       }
-
        if (!(oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL)) {
                ret = ocfs2_xattr_ibody_init(inode, xs->inode_bh, ctxt);
                if (ret) {