diff options
author | David Sterba <dsterba@suse.cz> | 2014-09-30 01:33:33 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-10-02 16:15:21 +0200 |
commit | ee39b432b4ac083acdafd7b4f156283722e3bf14 (patch) | |
tree | d74c00763ec0145fe39d01e45a47cf0b550099ca /fs/btrfs/ioctl.c | |
parent | 5d99a998f375b7bff7ddff0162a6eed4d4ca1318 (diff) | |
download | op-kernel-dev-ee39b432b4ac083acdafd7b4f156283722e3bf14.zip op-kernel-dev-ee39b432b4ac083acdafd7b4f156283722e3bf14.tar.gz |
btrfs: remove unlikely from data-dependent branches and slow paths
There are the branch hints that obviously depend on the data being
processed, the CPU predictor will do better job according to the actual
load. It also does not make sense to use the hints in slow paths that do
a lot of other operations like locking, waiting or IO.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 0ff2127..f2c60cd 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -3167,7 +3167,7 @@ static void clone_update_extent_map(struct inode *inode, em->start + em->len - 1, 0); } - if (unlikely(ret)) + if (ret) set_bit(BTRFS_INODE_NEEDS_FULL_SYNC, &BTRFS_I(inode)->runtime_flags); } |