diff options
-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 89d506d0b35d..aa7a3f139fe5 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c | |||
@@ -520,7 +520,7 @@ static int __f2fs_setxattr(struct inode *inode, int name_index, | |||
520 | */ | 520 | */ |
521 | free = MIN_OFFSET(inode) - ((char *)last - (char *)base_addr); | 521 | free = MIN_OFFSET(inode) - ((char *)last - (char *)base_addr); |
522 | if (found) | 522 | if (found) |
523 | free = free - ENTRY_SIZE(here); | 523 | free = free + ENTRY_SIZE(here); |
524 | 524 | ||
525 | if (free < newsize) { | 525 | if (free < newsize) { |
526 | error = -ENOSPC; | 526 | error = -ENOSPC; |