NFS4.1: Add lseg to struct nfs4_fl_commit_bucket
authorFred Isaman <iisaman@netapp.com>
Fri, 20 Apr 2012 18:47:38 +0000 (14:47 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 27 Apr 2012 18:10:36 +0000 (14:10 -0400)
commit799ba8d53d32c84bd2a867ca2689538a48176140
treee17ad842898a2c9b63183f7a435c984191336859
parent1acbbb4e16209e85c35ff6cacad61d802c07289b
NFS4.1: Add lseg to struct nfs4_fl_commit_bucket

Also create a commit_info structure to hold the bucket array and push
it up from the lseg to the layout where it really belongs.

While we are at it, fix a refcounting bug due to an (incorrect)
implicit assumption that filelayout_scan_ds_commit_list always
completely emptied the src list.

This clarifies refcounting, removes the ugly find_only_write_lseg
functions, and pushes the file layout commit code along on the path to
supporting multiple lsegs.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4filelayout.c
fs/nfs/nfs4filelayout.h