NFSv4.1/flexfiles: Allow coalescing of new layout segments and existing ones
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Aug 2015 21:38:25 +0000 (17:38 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Aug 2015 23:42:43 +0000 (19:42 -0400)
commit0762ed2ced40bfe648378ef0e1635cf4d3a6fb76
tree53329ba229bf0d7bc73c433a664ea551828444c9
parent03772d2f00313bb22d91b2019cb8e6e91b415653
NFSv4.1/flexfiles: Allow coalescing of new layout segments and existing ones

In order to ensure atomicity of updates, we merge the old layout segments
into the new ones, and then invalidate the old ones.

Also ensure that we order the list of layout segments so that
RO segments are preferred over RW.

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