From ab22b71003c16300dd21f6d8cc6396e9bd2e3519 Mon Sep 17 00:00:00 2001 From: Junxiao Bi Date: Fri, 28 Jun 2013 09:51:06 +1000 Subject: [PATCH] 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 --- fs/ocfs2/xattr.c | 7 ------- 1 file changed, 7 deletions(-) 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) { -- 2.39.5