mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
btrfs: use PAGE_{ALIGN, ALIGNED, ALIGN_DOWN} macro
The header file linux/mm.h provides PAGE_ALIGN, PAGE_ALIGNED, PAGE_ALIGN_DOWN macros. Use these macros to make code more concise. Signed-off-by: Yushan Zhou <katrinzhou@tencent.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
d31de37850
commit
ce394a7f39
@@ -2825,7 +2825,7 @@ static noinline_for_stack int prealloc_file_extent_cluster(
|
||||
*
|
||||
* Here we have to manually invalidate the range (i_size, PAGE_END + 1).
|
||||
*/
|
||||
if (!IS_ALIGNED(i_size, PAGE_SIZE)) {
|
||||
if (!PAGE_ALIGNED(i_size)) {
|
||||
struct address_space *mapping = inode->vfs_inode.i_mapping;
|
||||
struct btrfs_fs_info *fs_info = inode->root->fs_info;
|
||||
const u32 sectorsize = fs_info->sectorsize;
|
||||
|
||||
Reference in New Issue
Block a user