aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorFred Isaman <iisaman@netapp.com>2011-01-06 06:36:28 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-01-06 14:46:32 -0500
commitcc6e5340b0981feac5a00a992bab6154cb4b1fa1 (patch)
tree514db8586801aa60ee97d3880071b12c0cdf2421 /fs/nfs/pnfs.h
parentfc1794c5b04f5322bad05385cd91b52ec85aab72 (diff)
pnfs: change lo refcounting to atomic_t
This will be required to allow us to grab reference outside of i_lock. While we are at it, make put_layout_hdr take the same argument as all the related functions. Signed-off-by: Fred Isaman <iisaman@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 698380da24cc..8aaab56b794f 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -65,7 +65,7 @@ struct pnfs_layoutdriver_type {
65}; 65};
66 66
67struct pnfs_layout_hdr { 67struct pnfs_layout_hdr {
68 unsigned long plh_refcount; 68 atomic_t plh_refcount;
69 struct list_head plh_layouts; /* other client layouts */ 69 struct list_head plh_layouts; /* other client layouts */
70 struct list_head plh_segs; /* layout segments list */ 70 struct list_head plh_segs; /* layout segments list */
71 nfs4_stateid plh_stateid; 71 nfs4_stateid plh_stateid;
@@ -147,7 +147,7 @@ void unset_pnfs_layoutdriver(struct nfs_server *);
147int pnfs_layout_process(struct nfs4_layoutget *lgp); 147int pnfs_layout_process(struct nfs4_layoutget *lgp);
148void pnfs_destroy_layout(struct nfs_inode *); 148void pnfs_destroy_layout(struct nfs_inode *);
149void pnfs_destroy_all_layouts(struct nfs_client *); 149void pnfs_destroy_all_layouts(struct nfs_client *);
150void put_layout_hdr(struct inode *inode); 150void put_layout_hdr(struct pnfs_layout_hdr *lo);
151int pnfs_choose_layoutget_stateid(nfs4_stateid *dst, 151int pnfs_choose_layoutget_stateid(nfs4_stateid *dst,
152 struct pnfs_layout_hdr *lo, 152 struct pnfs_layout_hdr *lo,
153 struct nfs4_state *open_state); 153 struct nfs4_state *open_state);