]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFSD/blocklayout: Extract extent mapping from proc_layoutget
authorSergey Bashirov <sergeybashirov@gmail.com>
Fri, 3 Oct 2025 09:11:04 +0000 (12:11 +0300)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 16 Nov 2025 23:20:11 +0000 (18:20 -0500)
commita1dce715c64d4376321b5534366ae48fd7d14bcc
tree673f5c52a93f12c5fca16c64087e71be8100e979
parent3524b021b0ec620a76c89aee78e9d4b4130fb711
NFSD/blocklayout: Extract extent mapping from proc_layoutget

No changes in functionality. Split the proc_layoutget function to
create a helper function that maps single extent to the requested
range. This helper function is then used to implement support for
multiple extents per LAYOUTGET.

Signed-off-by: Sergey Bashirov <sergeybashirov@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/blocklayout.c