pNFS: Fix pnfs_set_layout_stateid() to clear NFS_LAYOUT_INVALID_STID
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 3 Sep 2016 15:20:04 +0000 (11:20 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 3 Sep 2016 16:10:37 +0000 (12:10 -0400)
commit2a59a0411671ef9daf17ba21da57809c696f4119
tree3059cb36e64461e86643560e40753ed229053b07
parentbf0291dd2267a2b9a4cd74d65249553d11bb45d6
pNFS: Fix pnfs_set_layout_stateid() to clear NFS_LAYOUT_INVALID_STID

If the layout was marked as invalid, we want to ensure to initialise
the layout header fields correctly.

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