diff options
Diffstat (limited to 'fs/nfsd/nfsfh.c')
-rw-r--r-- | fs/nfsd/nfsfh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index 965b478d50fc..e9fa966fc37f 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c | |||
@@ -114,8 +114,8 @@ static inline __be32 check_pseudo_root(struct svc_rqst *rqstp, | |||
114 | * We're exposing only the directories and symlinks that have to be | 114 | * We're exposing only the directories and symlinks that have to be |
115 | * traversed on the way to real exports: | 115 | * traversed on the way to real exports: |
116 | */ | 116 | */ |
117 | if (unlikely(!S_ISDIR(dentry->d_inode->i_mode) && | 117 | if (unlikely(!d_is_dir(dentry) && |
118 | !S_ISLNK(dentry->d_inode->i_mode))) | 118 | !d_is_symlink(dentry))) |
119 | return nfserr_stale; | 119 | return nfserr_stale; |
120 | /* | 120 | /* |
121 | * A pseudoroot export gives permission to access only one | 121 | * A pseudoroot export gives permission to access only one |
@@ -259,7 +259,7 @@ static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) | |||
259 | goto out; | 259 | goto out; |
260 | } | 260 | } |
261 | 261 | ||
262 | if (S_ISDIR(dentry->d_inode->i_mode) && | 262 | if (d_is_dir(dentry) && |
263 | (dentry->d_flags & DCACHE_DISCONNECTED)) { | 263 | (dentry->d_flags & DCACHE_DISCONNECTED)) { |
264 | printk("nfsd: find_fh_dentry returned a DISCONNECTED directory: %pd2\n", | 264 | printk("nfsd: find_fh_dentry returned a DISCONNECTED directory: %pd2\n", |
265 | dentry); | 265 | dentry); |
@@ -414,7 +414,7 @@ static inline void _fh_update_old(struct dentry *dentry, | |||
414 | { | 414 | { |
415 | fh->ofh_ino = ino_t_to_u32(dentry->d_inode->i_ino); | 415 | fh->ofh_ino = ino_t_to_u32(dentry->d_inode->i_ino); |
416 | fh->ofh_generation = dentry->d_inode->i_generation; | 416 | fh->ofh_generation = dentry->d_inode->i_generation; |
417 | if (S_ISDIR(dentry->d_inode->i_mode) || | 417 | if (d_is_dir(dentry) || |
418 | (exp->ex_flags & NFSEXP_NOSUBTREECHECK)) | 418 | (exp->ex_flags & NFSEXP_NOSUBTREECHECK)) |
419 | fh->ofh_dirino = 0; | 419 | fh->ofh_dirino = 0; |
420 | } | 420 | } |