On Thu, Jul 10, 2025 at 12:45:52AM -0700, Christoph Hellwig wrote: > On Tue, Jul 08, 2025 at 12:06:14PM -0400, Mike Snitzer wrote: > > Use STATX_DIOALIGN and STATX_DIO_READ_ALIGN to get and store DIO > > alignment attributes from underlying filesystem in associated > > nfsd_file. This is done when the nfsd_file is first opened for > > a regular file. > > Just as a little warning: these are unfortunately only supported by > very few file systems right now. For someone with a little bit of > time on their hand it would be nice to do a pass to set them for > all remaining direct I/O supporting file systems, which is only about > a dozen anyway. That's a good point. Meanwhile, I'll be sure to have the NFSD code (and NFS LOCALIO code later) be more defensive about the possibility of these attributes being 0 (due to lack of underlying filesystem support). Mike