summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/export.h
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2014-06-10 16:06:44 +0200
committerJ. Bruce Fields <bfields@redhat.com>2014-06-23 17:31:36 +0200
commitbf18f163e89c52e09c96534db45c4274273a0b34 (patch)
tree530a62156eaa8fa37ff1d19131cf275c49054667 /fs/nfsd/export.h
parentNFSD: Using path_get when assigning path for export (diff)
downloadlinux-bf18f163e89c52e09c96534db45c4274273a0b34.tar.xz
linux-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/export.h')
-rw-r--r--fs/nfsd/export.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/export.h b/fs/nfsd/export.h
index cfeea85c5bed..04dc8c167b0c 100644
--- a/fs/nfsd/export.h
+++ b/fs/nfsd/export.h
@@ -101,9 +101,10 @@ static inline void exp_put(struct svc_export *exp)
cache_put(&exp->h, exp->cd);
}
-static inline void exp_get(struct svc_export *exp)
+static inline struct svc_export *exp_get(struct svc_export *exp)
{
cache_get(&exp->h);
+ return exp;
}
struct svc_export * rqst_exp_find(struct svc_rqst *, int, u32 *);