On Wed, May 19, 2021 at 09:08:52PM +0200, Christoph Hellwig wrote: > ->b_offset can only be non-zero for SLAB backed buffers, so remove all > code dealing with it for page backed buffers. Can you refer to these as _XBF_KMEM buffers, not "SLAB backed"? That way there is no confusion as to what type of buffer needs to pay attention to b_offset... > diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h > index 459ca34f26f588..21b4c58fd2fa87 100644 > --- a/fs/xfs/xfs_buf.h > +++ b/fs/xfs/xfs_buf.h > @@ -167,7 +167,8 @@ struct xfs_buf { > atomic_t b_pin_count; /* pin count */ > atomic_t b_io_remaining; /* #outstanding I/O requests */ > unsigned int b_page_count; /* size of page array */ > - unsigned int b_offset; /* page offset in first page */ > + unsigned int b_offset; /* page offset in first page, > + only used for SLAB buffers */ Here too. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx