diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 06a72dc0191a022049bbf48ad26e127bb6211c02..152971243ad84eb0bd1a4d08f59df3020b793675 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; } }