diff options
author | Peng Tao <bergwolf@gmail.com> | 2011-07-30 20:52:31 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-31 12:18:14 -0400 |
commit | acff5880539fe33897d016c0f3dcf062e67c61b6 (patch) | |
tree | c5769a826e04e1c3b84c19d2b0f9932a2e69aa8f /fs/nfs/pnfs.h | |
parent | 374e4e3ec347d4f70e1417ce3e1c454f133dab72 (diff) |
pnfs: save layoutcommit lwb at layout header
No need to save it for every lseg.
[Needed in v3.0]
CC: Stable Tree <stable@kernel.org>
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>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 078670dfbe04..1eb2c043d23a 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -45,7 +45,6 @@ struct pnfs_layout_segment { | |||
45 | unsigned long pls_flags; | 45 | unsigned long pls_flags; |
46 | struct pnfs_layout_hdr *pls_layout; | 46 | struct pnfs_layout_hdr *pls_layout; |
47 | struct rpc_cred *pls_lc_cred; /* LAYOUTCOMMIT credential */ | 47 | struct rpc_cred *pls_lc_cred; /* LAYOUTCOMMIT credential */ |
48 | loff_t pls_end_pos; /* LAYOUTCOMMIT write end */ | ||
49 | }; | 48 | }; |
50 | 49 | ||
51 | enum pnfs_try_status { | 50 | enum pnfs_try_status { |
@@ -125,6 +124,7 @@ struct pnfs_layout_hdr { | |||
125 | unsigned long plh_block_lgets; /* block LAYOUTGET if >0 */ | 124 | unsigned long plh_block_lgets; /* block LAYOUTGET if >0 */ |
126 | u32 plh_barrier; /* ignore lower seqids */ | 125 | u32 plh_barrier; /* ignore lower seqids */ |
127 | unsigned long plh_flags; | 126 | unsigned long plh_flags; |
127 | loff_t plh_lwb; /* last write byte for layoutcommit */ | ||
128 | struct inode *plh_inode; | 128 | struct inode *plh_inode; |
129 | }; | 129 | }; |
130 | 130 | ||