diff options
author | Peng Tao <bergwolf@gmail.com> | 2011-07-30 20:52:32 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-04 21:58:37 -0700 |
commit | f45c1d4647a37feee31f4bca9ebd9b90ebdc98a3 (patch) | |
tree | 1dabf99203493d8a97e9ae8742fde54089609dc5 /fs/nfs/pnfs.h | |
parent | a14f191cda33a02a74edbf59820150e415d68616 (diff) | |
download | kernel_samsung_crespo-f45c1d4647a37feee31f4bca9ebd9b90ebdc98a3.zip kernel_samsung_crespo-f45c1d4647a37feee31f4bca9ebd9b90ebdc98a3.tar.gz kernel_samsung_crespo-f45c1d4647a37feee31f4bca9ebd9b90ebdc98a3.tar.bz2 |
pnfs: save layoutcommit cred at layout header init
commit 9fa4075878a5faac872a63f4a97ce79c776264e9 upstream.
No need to save it for every lseg.
No need to save it at every pnfs_set_layoutcommit.
[Needed in v3.0]
Signed-off-by: Peng Tao <peng_tao@emc.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 77e1b24..6969594 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -44,7 +44,6 @@ struct pnfs_layout_segment { atomic_t pls_refcount; unsigned long pls_flags; struct pnfs_layout_hdr *pls_layout; - struct rpc_cred *pls_lc_cred; /* LAYOUTCOMMIT credential */ }; enum pnfs_try_status { @@ -124,6 +123,7 @@ struct pnfs_layout_hdr { u32 plh_barrier; /* ignore lower seqids */ unsigned long plh_flags; loff_t plh_lwb; /* last write byte for layoutcommit */ + struct rpc_cred *plh_lc_cred; /* layoutcommit cred */ struct inode *plh_inode; }; |