aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2011-07-30 20:52:31 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-04 21:58:37 -0700
commita14f191cda33a02a74edbf59820150e415d68616 (patch)
tree0b5fc1cc18d7110070f8fec5cf9716a6647d849f /fs/nfs/pnfs.h
parentcb1d0a1e91079d22cedc6d66d9c94d53ce0b0199 (diff)
downloadkernel_samsung_smdk4412-a14f191cda33a02a74edbf59820150e415d68616.tar.gz
kernel_samsung_smdk4412-a14f191cda33a02a74edbf59820150e415d68616.tar.bz2
kernel_samsung_smdk4412-a14f191cda33a02a74edbf59820150e415d68616.zip
pnfs: save layoutcommit lwb at layout header
commit acff5880539fe33897d016c0f3dcf062e67c61b6 upstream. No need to save it for every lseg. [Needed in v3.0] Signed-off-by: Peng Tao <peng_tao@emc.com> Signed-off-by: Jim Rees <rees@umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 96bf4e6f45b..77e1b246515 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -45,7 +45,6 @@ struct pnfs_layout_segment {
unsigned long pls_flags;
struct pnfs_layout_hdr *pls_layout;
struct rpc_cred *pls_lc_cred; /* LAYOUTCOMMIT credential */
- loff_t pls_end_pos; /* LAYOUTCOMMIT write end */
};
enum pnfs_try_status {
@@ -124,6 +123,7 @@ struct pnfs_layout_hdr {
unsigned long plh_block_lgets; /* block LAYOUTGET if >0 */
u32 plh_barrier; /* ignore lower seqids */
unsigned long plh_flags;
+ loff_t plh_lwb; /* last write byte for layoutcommit */
struct inode *plh_inode;
};