]> Pileus Git - ~andy/linux/blobdiff - fs/f2fs/xattr.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[~andy/linux] / fs / f2fs / xattr.c
index e2b929954081303f25356237b7e486cf31913c90..89d0422a91a88fea51ecf5935d31c2920545f8a6 100644 (file)
@@ -523,7 +523,7 @@ static int __f2fs_setxattr(struct inode *inode, int name_index,
                if (found)
                        free = free + ENTRY_SIZE(here);
 
-               if (free < newsize) {
+               if (unlikely(free < newsize)) {
                        error = -ENOSPC;
                        goto exit;
                }