]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - fs/f2fs/xattr.c
f2fs: give -E2BIG for no space in xattr
[mirror_ubuntu-jammy-kernel.git] / fs / f2fs / xattr.c
index 06a72dc0191a022049bbf48ad26e127bb6211c02..152971243ad84eb0bd1a4d08f59df3020b793675 100644 (file)
@@ -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;
                }
        }