Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | From | zys.zljxml@gmail ... | Subject | [PATCH] brtfs: use PAGE_ALIGNED macro | Date | Wed, 28 Dec 2022 12:04:47 +0800 |
| |
From: Yushan Zhou <katrinzhou@tencent.com>
The header file linux/mm.h provides the PAGE_ALIGNED macro to test whether an address is aligned to PAGE_SIZE. Use it instead of IS_ALIGNED.
Signed-off-by: Yushan Zhou <katrinzhou@tencent.com> --- fs/btrfs/lzo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index d5e78cbc8fbc..71f6d8302d50 100644 --- a/fs/btrfs/lzo.c +++ b/fs/btrfs/lzo.c @@ -280,7 +280,7 @@ int lzo_compress_pages(struct list_head *ws, struct address_space *mapping, } /* Check if we have reached page boundary */ - if (IS_ALIGNED(cur_in, PAGE_SIZE)) { + if (PAGE_ALIGNED(cur_in)) { put_page(page_in); page_in = NULL; } -- 2.27.0
| ![\](/images/icornerr.gif) |