[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221228040447.3566246-1-zys.zljxml@gmail.com>
Date: Wed, 28 Dec 2022 12:04:47 +0800
From: zys.zljxml@...il.com
To: clm@...com, josef@...icpanda.com, dsterba@...e.com
Cc: linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org,
Yushan Zhou <katrinzhou@...cent.com>
Subject: [PATCH] brtfs: use PAGE_ALIGNED macro
From: Yushan Zhou <katrinzhou@...cent.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@...cent.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
Powered by blists - more mailing lists