Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58457f1c authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

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: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 4da7bf5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}