]> Gentwo Git Trees - linux/.git/commit
NFS: add basic STATX_DIOALIGN and STATX_DIO_READ_ALIGN support
authorMike Snitzer <snitzer@kernel.org>
Fri, 19 Sep 2025 14:36:31 +0000 (10:36 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 30 Sep 2025 20:10:30 +0000 (16:10 -0400)
commit1f0d4ab0f5326ab6f940482b1941d2209d61285a
tree3200783d66fb8f4d2d053b7147ff4acf066a63d1
parentcda94457c224915845b1d209ff71cad3c61ce194
NFS: add basic STATX_DIOALIGN and STATX_DIO_READ_ALIGN support

NFS doesn't have DIO alignment constraints, so have NFS respond with
accommodating DIO alignment attributes (rather than plumb in GETATTR
support for STATX_DIOALIGN and STATX_DIO_READ_ALIGN).

The most coarse-grained dio_offset_align is the most accommodating
(e.g. PAGE_SIZE, in future larger may be supported).

Now that NFS has support, NFS reexport will now handle unaligned DIO
(NFSD's NFSD_IO_DIRECT support requires the underlying filesystem
support STATX_DIOALIGN and/or STATX_DIO_READ_ALIGN).

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/inode.c