diff options
| author | Daejun Park <daejun7.park@samsung.com> | 2026-10-29 11:23:02 +0900 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-11-03 15:15:30 +0100 |
| commit | 66d1ce09ebd72709f8d739630c39f440445173fd (patch) | |
| tree | ec74997537776130c17baae13068a7df76881cbc /scripts/subarch.include | |
| parent | d8c2bc88460f89e543ab3af622fc8f34c7011d71 (diff) | |
xfs: cap the block count of xfs_iomap_write_direct() at one extent
xfs_iomap_write_direct() reserves blocks for the whole count in an
unsigned int. For a pNFS layout the client chooses that count, and an
RW LAYOUTGET for 16 TiB wraps the reservation and shuts XFS down.
xfs_bmapi_write() maps at most XFS_MAX_BMBT_EXTLEN blocks here, so cap
the count at that. nfsd asks again for the rest. The other callers get
the same mapping as before.
Suggested-by: Darrick J. Wong <djwong@kernel.org>
Suggested-by: Christoph Hellwig <hch@lst.de>
Suggested-by: Pankaj Raghav <p.raghav@samsung.com>
Fixes: 527851124d10 ("xfs: implement pNFS export operations")
Cc: stable@vger.kernel.org
Signed-off-by: Daejun Park <daejun7.park@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/subarch.include')
0 files changed, 0 insertions, 0 deletions
