aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2008-01-23 01:58:59 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:06:11 -0500
commit3a10c30acc4821ca000b52ed0edafd0d3bf26a52 (patch)
tree535fe870e12f9a032112b16d4e31fe1d813ea2c3 /include/linux
parentfc6014771bde8a215a9a4ea24b45f76afeb3c922 (diff)
nfs: obliterate NFS_FLAGS macro
use NFS_I(inode)->flags instead Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_fs.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 7095aaa087d8..9e7c24a2aca9 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -214,8 +214,7 @@ static inline struct nfs_inode *NFS_I(struct inode *inode)
214 (S_ISDIR(inode->i_mode)? NFS_SERVER(inode)->acdirmax \ 214 (S_ISDIR(inode->i_mode)? NFS_SERVER(inode)->acdirmax \
215 : NFS_SERVER(inode)->acregmax) 215 : NFS_SERVER(inode)->acregmax)
216 216
217#define NFS_FLAGS(inode) (NFS_I(inode)->flags) 217#define NFS_STALE(inode) (test_bit(NFS_INO_STALE, &NFS_I(inode)->flags))
218#define NFS_STALE(inode) (test_bit(NFS_INO_STALE, &NFS_FLAGS(inode)))
219 218
220#define NFS_FILEID(inode) (NFS_I(inode)->fileid) 219#define NFS_FILEID(inode) (NFS_I(inode)->fileid)
221 220
@@ -237,7 +236,7 @@ static inline int nfs_server_capable(struct inode *inode, int cap)
237 236
238static inline int NFS_USE_READDIRPLUS(struct inode *inode) 237static inline int NFS_USE_READDIRPLUS(struct inode *inode)
239{ 238{
240 return test_bit(NFS_INO_ADVISE_RDPLUS, &NFS_FLAGS(inode)); 239 return test_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags);
241} 240}
242 241
243static inline void nfs_set_verifier(struct dentry * dentry, unsigned long verf) 242static inline void nfs_set_verifier(struct dentry * dentry, unsigned long verf)