From: Junxiao Bi Date: Thu, 27 Jun 2013 23:51:06 +0000 (+1000) Subject: ocfs2: xattr: remove useless free space checking X-Git-Tag: next-20130628~3^2~636 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ab22b71003c16300dd21f6d8cc6396e9bd2e3519;p=karo-tx-linux.git ocfs2: xattr: remove useless free space checking Free space checking will be done in ocfs2_xattr_ibody_init(). So remove here. Signed-off-by: Junxiao Bi Reviewed-by: Jie Liu Cc: Joel Becker Cc: Mark Fasheh Signed-off-by: Andrew Morton --- diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 2e3ea308c144..6c98d7d83c43 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -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) {