Re: [PATCH] brtfs: use PAGE_ALIGNED macro

From: Katrin Jo
Date: Mon Jan 02 2023 - 21:57:08 EST


The macro ALIGN(addr, PAGE_SIZE) can be replaced by PAGE_ALIGN(addr),
and the same as PAGE_ALIGNED_DOWN.
Do you mean that? I will send the third version and modify the commit
message a bit.

Best,
Katrin

On Mon, Jan 2, 2023 at 11:09 PM David Sterba <dsterba@xxxxxxx> wrote:
>
> On Wed, Dec 28, 2022 at 12:04:47PM +0800, zys.zljxml@xxxxxxxxx wrote:
> > From: Yushan Zhou <katrinzhou@xxxxxxxxxxx>
> >
> > 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.
>
> There are about 8 such conversions in fs/btrfs/, please fix them all.
> Thanks.