Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
pNFS/filelayout: Remove the whole file layout requirement
Browse files Browse the repository at this point in the history
Layout segments have been supported in pNFS for years, so remove the
requirement that the server always sends whole file layouts.

Signed-off-by: Anna Schumaker <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
amschuma-ntap authored and Trond Myklebust committed May 20, 2024
1 parent a38297e commit 9c75576
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fs/nfs/filelayout/filelayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,14 +605,6 @@ filelayout_check_layout(struct pnfs_layout_hdr *lo,

dprintk("--> %s\n", __func__);

/* FIXME: remove this check when layout segment support is added */
if (lgr->range.offset != 0 ||
lgr->range.length != NFS4_MAX_UINT64) {
dprintk("%s Only whole file layouts supported. Use MDS i/o\n",
__func__);
goto out;
}

if (fl->pattern_offset > lgr->range.offset) {
dprintk("%s pattern_offset %lld too large\n",
__func__, fl->pattern_offset);
Expand Down

0 comments on commit 9c75576

Please sign in to comment.