From: Jaegeuk Kim Date: Tue, 12 Apr 2016 18:52:30 +0000 (-0700) Subject: f2fs: give -E2BIG for no space in xattr X-Git-Tag: v4.7~303^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58457f1c355545c468b8aed5c431d8a6bb71d35d;p=platform%2Fkernel%2Flinux-amlogic.git f2fs: give -E2BIG for no space in xattr This patch returns -E2BIG if there is no space to add an xattr entry. This should fix generic/026 in xfstests as well. Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 06a72dc..1529712 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c @@ -500,7 +500,7 @@ static int __f2fs_setxattr(struct inode *inode, int index, free = free + ENTRY_SIZE(here); if (unlikely(free < newsize)) { - error = -ENOSPC; + error = -E2BIG; goto exit; } }