aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2008-12-23 15:21:56 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-12-23 15:21:56 -0500
commitdc0b027dfadfcb8a5504f7d8052754bf8d501ab9 (patch)
treef27f81794950b8a159e8045b7b6a74f19f2ac26e /fs/nfs/nfs4_fs.h
parent7a50c60e461f6ff97428da9448c3dad5b7bef491 (diff)
NFSv4: Convert the open and close ops to use fmode
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index ee5f51ef696d..d5f5efaf2b26 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -161,7 +161,7 @@ struct nfs4_state {
161 unsigned int n_rdonly; /* Number of read-only references */ 161 unsigned int n_rdonly; /* Number of read-only references */
162 unsigned int n_wronly; /* Number of write-only references */ 162 unsigned int n_wronly; /* Number of write-only references */
163 unsigned int n_rdwr; /* Number of read/write references */ 163 unsigned int n_rdwr; /* Number of read/write references */
164 int state; /* State on the server (R,W, or RW) */ 164 fmode_t state; /* State on the server (R,W, or RW) */
165 atomic_t count; 165 atomic_t count;
166}; 166};
167 167
@@ -223,9 +223,9 @@ extern struct nfs4_state_owner * nfs4_get_state_owner(struct nfs_server *, struc
223extern void nfs4_put_state_owner(struct nfs4_state_owner *); 223extern void nfs4_put_state_owner(struct nfs4_state_owner *);
224extern struct nfs4_state * nfs4_get_open_state(struct inode *, struct nfs4_state_owner *); 224extern struct nfs4_state * nfs4_get_open_state(struct inode *, struct nfs4_state_owner *);
225extern void nfs4_put_open_state(struct nfs4_state *); 225extern void nfs4_put_open_state(struct nfs4_state *);
226extern void nfs4_close_state(struct path *, struct nfs4_state *, mode_t); 226extern void nfs4_close_state(struct path *, struct nfs4_state *, fmode_t);
227extern void nfs4_close_sync(struct path *, struct nfs4_state *, mode_t); 227extern void nfs4_close_sync(struct path *, struct nfs4_state *, fmode_t);
228extern void nfs4_state_set_mode_locked(struct nfs4_state *, mode_t); 228extern void nfs4_state_set_mode_locked(struct nfs4_state *, fmode_t);
229extern void nfs4_schedule_state_recovery(struct nfs_client *); 229extern void nfs4_schedule_state_recovery(struct nfs_client *);
230extern void nfs4_schedule_state_manager(struct nfs_client *); 230extern void nfs4_schedule_state_manager(struct nfs_client *);
231extern int nfs4_state_mark_reclaim_nograce(struct nfs_client *clp, struct nfs4_state *state); 231extern int nfs4_state_mark_reclaim_nograce(struct nfs_client *clp, struct nfs4_state *state);