mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
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>
This commit is contained in:
parent
4da7bf5a43
commit
58457f1c35
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user