RE:(2) [PATCH v4 5/9] xfs: limit the count of a pNFS write allocation to one extent
From: Daejun Park
Date: Tue Oct 27 2026 - 04:35:21 EST
On Thu, Oct 22, 2026 at 03:02:30PM +0200, Pankaj Raghav wrote:
> Isn't it better we add this in xfs_direct_write_iomap_begin() instead of
> adding it in pnfs?
[...]
> + count_fsb = min_t(xfs_filblks_t, count_fsb, XFS_MAX_BMBT_EXTLEN);
Thanks. That works for pNFS as well, as xfs_fs_map_blocks() passes the
same count to xfs_iomap_write_direct(). I put the cap in
xfs_fs_map_blocks() because it relies on the caller asking again for
the rest of the range, which nfsd does, and the other caller,
xfs_direct_write_iomap_begin(), already limits a mapping to 1024 pages.
Daejun