]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit327db0b4e8a0251cd61e95b4640b4bf353c92a88
treec5bd1a2a8a05d25316648577cd46679388b684f4
parent257dae35748616e58d82071a82dd015d152919f6
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