NFSv4.1: Simplify layout return in pnfs_layout_process()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 15 Apr 2021 21:33:07 +0000 (17:33 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 18 Apr 2021 19:10:53 +0000 (15:10 -0400)
commitfb700ef026766c95578aafc0db1b208946e7ad4f
tree523b34b6026a46a5595722ba5c5914c94c6b9eaa
parentde144ff4234f935bd2150108019b5d87a90a8a96
NFSv4.1: Simplify layout return in pnfs_layout_process()

If the server hands us a layout that does not match the one we currently
hold, then have pnfs_mark_matching_lsegs_return() just ditch the old
layout if NFS_LSEG_LAYOUTRETURN is not set.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c