btrfs: Use IS_ALIGNED in btrfs_truncate_block instead of opencoding it
authorNikolay Borisov <nborisov@suse.com>
Thu, 18 Jan 2018 12:47:06 +0000 (14:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:22 +0000 (16:08 +0100)
commitb03ebd992ff329889d2e1f342cb75ee3ebc21adc
treee2daf1f5a598820b95b7831166b3c8304fc0b757
parent5f4791f4a6479cdeb8caae1a3e5895c8a6e99c09
btrfs: Use IS_ALIGNED in btrfs_truncate_block instead of opencoding it

No functional changes, just makes the code more readable

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c