]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/ext2/xattr.c
Ext2: use unlikely to improve the efficiency of the kernel
[mirror_ubuntu-bionic-kernel.git] / fs / ext2 / xattr.c
index b6754dbbce3c5e4942d8f46273d24c1236f0588b..06209ec46152715628766b471e1dd1d4997218d0 100644 (file)
@@ -662,7 +662,7 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh,
                        ea_idebug(inode, "creating block %d", block);
 
                        new_bh = sb_getblk(sb, block);
-                       if (!new_bh) {
+                       if (unlikely(!new_bh)) {
                                ext2_free_blocks(inode, block, 1);
                                mark_inode_dirty(inode);
                                error = -EIO;