diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-04-12 14:52:30 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-04-15 11:50:25 -0400 |
commit | 58457f1c355545c468b8aed5c431d8a6bb71d35d (patch) | |
tree | a32f4840a1b93017393721f82381a9917c7c2fba /fs/f2fs/xattr.c | |
parent | 4da7bf5a4345f3ce9699476a8022f66cfb4a8ce9 (diff) |
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 <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/xattr.c')
-rw-r--r-- | fs/f2fs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 06a72dc0191a..152971243ad8 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c | |||
@@ -500,7 +500,7 @@ static int __f2fs_setxattr(struct inode *inode, int index, | |||
500 | free = free + ENTRY_SIZE(here); | 500 | free = free + ENTRY_SIZE(here); |
501 | 501 | ||
502 | if (unlikely(free < newsize)) { | 502 | if (unlikely(free < newsize)) { |
503 | error = -ENOSPC; | 503 | error = -E2BIG; |
504 | goto exit; | 504 | goto exit; |
505 | } | 505 | } |
506 | } | 506 | } |