diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-06-10 22:06:44 +0800 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-06-23 11:31:36 -0400 |
commit | bf18f163e89c52e09c96534db45c4274273a0b34 (patch) | |
tree | 530a62156eaa8fa37ff1d19131cf275c49054667 /fs/nfsd/nfs4proc.c | |
parent | 0da22a919d6972f629407f79fc096f29d23a4942 (diff) | |
download | linux-exynos-bf18f163e89c52e09c96534db45c4274273a0b34.tar.gz linux-exynos-bf18f163e89c52e09c96534db45c4274273a0b34.tar.bz2 linux-exynos-bf18f163e89c52e09c96534db45c4274273a0b34.zip |
NFSD: Using exp_get for export getting
Don't using cache_get besides export.h, using exp_get for export.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index be6734060d2a..f3f048724ac7 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -177,7 +177,7 @@ fh_dup2(struct svc_fh *dst, struct svc_fh *src) fh_put(dst); dget(src->fh_dentry); if (src->fh_export) - cache_get(&src->fh_export->h); + exp_get(src->fh_export); *dst = *src; } @@ -918,8 +918,8 @@ nfsd4_secinfo_no_name(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstat default: return nfserr_inval; } - exp_get(cstate->current_fh.fh_export); - sin->sin_exp = cstate->current_fh.fh_export; + + sin->sin_exp = exp_get(cstate->current_fh.fh_export); fh_put(&cstate->current_fh); return nfs_ok; } |