]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/btrfs/file-item.c
btrfs: use IS_ALIGNED() for assertion in btrfs_lookup_csums_range() for simplicity
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Fri, 25 Jul 2014 08:07:48 +0000 (17:07 +0900)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:54 +0000 (13:37 -0700)
commitd1b00a4711d5b953b13ccc859bc30c447c96860e
treec5bd1a2a8a05d25316648577cd46679388b684f4
parent1a76e4ba5b18775e532faa4f8eb858c4553d196c
btrfs: use IS_ALIGNED() for assertion in btrfs_lookup_csums_range() for simplicity

btrfs_lookup_csums_range() uses ALIGN() to check if "start"
and "end + 1" are aligned to "root->sectorsize". It's better to
replace these with IS_ALIGNED() for simplicity.

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/file-item.c