Skip to content

Commit

Permalink
nfsd: use cache detail pointer from svc_export structure on cache put
Browse files Browse the repository at this point in the history
Hard-coded pointer is redundant now and can be replaced.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Stanislav Kinsbursky authored and J. Bruce Fields committed Apr 11, 2012
1 parent db3a353 commit 7123497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/nfsd/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ extern struct cache_detail svc_export_cache;

static inline void exp_put(struct svc_export *exp)
{
cache_put(&exp->h, &svc_export_cache);
cache_put(&exp->h, exp->cd);
}

static inline void exp_get(struct svc_export *exp)
Expand Down

0 comments on commit 7123497

Please sign in to comment.