diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-08-30 22:44:14 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-08-30 22:44:14 -0700 |
| commit | cf430fc8d7191e0f1846b62dd89dcd6bf0e59a7c (patch) | |
| tree | 68069c817fcd15766d053819f05deae354641cc0 /include/linux/nfsd | |
| parent | 505ec28de70e7b97a1aba11e1c3342822b8ae089 (diff) | |
[PATCH] Track nfsv4 open files by "struct inode" rather than dev/ino/generation
Diffstat (limited to 'include/linux/nfsd')
| -rw-r--r-- | include/linux/nfsd/state.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index 480eebab6993..66422a1c8277 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h @@ -113,21 +113,15 @@ struct nfs4_stateowner { int so_confirmed; /* successful OPEN_CONFIRM? */ }; -typedef struct { - u32 dev; /* super_block->s_dev */ - unsigned long ino; - u32 generation; -} nfs4_ino_desc_t; - /* * nfs4_file: a file opened by some number of (open) nfs4_stateowners. * o fi_perfile list is used to search for conflicting * share_acces, share_deny on the file. */ struct nfs4_file { - struct list_head fi_hash; /* hash by nfs4_ino_desc_t fields */ + struct list_head fi_hash; /* hash by "struct inode *" */ struct list_head fi_perfile; /* list: nfs4_stateid */ - nfs4_ino_desc_t fi_ino; + struct inode *fi_inode; u32 fi_id; /* used with stateowner->so_id * for openstateid_hashtbl hash */ }; |
