diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 24a7139d3449..51bc88b662fe 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1089,13 +1089,15 @@ void nfs_destroy_inode(struct inode *inode) | |||
1089 | kmem_cache_free(nfs_inode_cachep, NFS_I(inode)); | 1089 | kmem_cache_free(nfs_inode_cachep, NFS_I(inode)); |
1090 | } | 1090 | } |
1091 | 1091 | ||
1092 | #define nfs4_init_once(nfsi) \ | 1092 | static inline void nfs4_init_once(struct nfs_inode *nfsi) |
1093 | do { \ | 1093 | { |
1094 | INIT_LIST_HEAD(&(nfsi)->open_states); \ | 1094 | #ifdef CONFIG_NFS_V4 |
1095 | nfsi->delegation = NULL; \ | 1095 | INIT_LIST_HEAD(&nfsi->open_states); |
1096 | nfsi->delegation_state = 0; \ | 1096 | nfsi->delegation = NULL; |
1097 | init_rwsem(&nfsi->rwsem); \ | 1097 | nfsi->delegation_state = 0; |
1098 | } while(0) | 1098 | init_rwsem(&nfsi->rwsem); |
1099 | #endif | ||
1100 | } | ||
1099 | 1101 | ||
1100 | static void init_once(void * foo, kmem_cache_t * cachep, unsigned long flags) | 1102 | static void init_once(void * foo, kmem_cache_t * cachep, unsigned long flags) |
1101 | { | 1103 | { |