]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use a single if() statement for one outcome in get_block_rsv()
authorAlexandru Moise <00moses.alexander00@gmail.com>
Wed, 9 Sep 2015 00:18:50 +0000 (00:18 +0000)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Oct 2015 16:28:48 +0000 (18:28 +0200)
commit4395d7a8283bb69db6c4e64f2c18c6334d280e50
treee60295b7c85131d23c0ead3ae3e89657fd28a01b
parenta0e63d1d13eb9c1a69db9426685afc058929b498
btrfs: use a single if() statement for one outcome in get_block_rsv()

Rather than have three separate if() statements for the same outcome
we should just OR them together in the same if() statement.

Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c