Skip to content

Commit 9c75576

Browse files
amschuma-ntapTrond Myklebust
authored andcommitted
pNFS/filelayout: Remove the whole file layout requirement
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]>
1 parent a38297e commit 9c75576

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

fs/nfs/filelayout/filelayout.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -605,14 +605,6 @@ filelayout_check_layout(struct pnfs_layout_hdr *lo,
605605

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

608-
/* FIXME: remove this check when layout segment support is added */
609-
if (lgr->range.offset != 0 ||
610-
lgr->range.length != NFS4_MAX_UINT64) {
611-
dprintk("%s Only whole file layouts supported. Use MDS i/o\n",
612-
__func__);
613-
goto out;
614-
}
615-
616608
if (fl->pattern_offset > lgr->range.offset) {
617609
dprintk("%s pattern_offset %lld too large\n",
618610
__func__, fl->pattern_offset);

0 commit comments

Comments
 (0)