NFSv4.1/pnfs: Fix setting of layoutcommit last write byte
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 26 Mar 2015 00:10:20 +0000 (20:10 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 27 Mar 2015 16:39:35 +0000 (12:39 -0400)
commit29559b11aef072f893cd32280dcec9d7380ca011
treead46d8aeb9c4154208f7a565aaeb1241d8ee6b8c
parent415320fc14eca40b564d1797e68895d15b51ac49
NFSv4.1/pnfs: Fix setting of layoutcommit last write byte

If the NFS_INO_LAYOUTCOMMIT flag was unset, then we _must_ ensure that
we also reset the last write byte (lwb) for that layout. The current
code depends on us clearing the lwb when we clear NFS_INO_LAYOUTCOMMIT,
which is not the case when we call pnfs_clear_layoutcommit().

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