diff options
| author | J. Bruce Fields <bfields@fieldses.org> | 2011-01-04 13:31:45 -0500 |
|---|---|---|
| committer | J. Bruce Fields <bfields@redhat.com> | 2011-01-04 16:48:02 -0500 |
| commit | bdd5f05d91e8ae68075b812ce244c918d3d752cd (patch) | |
| tree | 45e5e9d403ee26a666cd9fbcfee5e26ea6511d50 /include/linux/sunrpc | |
| parent | 31f7aa65f536995c6d933c57230919ae408952a5 (diff) | |
SUNRPC: Remove more code when NFSD_DEPRECATED is not configured
Signed-off-by: NeilBrown <neilb@suse.de>
[bfields@redhat.com: moved svcauth_unix_purge outside ifdef's.]
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 6950c981882..c2aebe8eeff 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h | |||
| @@ -255,10 +255,13 @@ static inline time_t get_expiry(char **bpp) | |||
| 255 | return rv - boot.tv_sec; | 255 | return rv - boot.tv_sec; |
| 256 | } | 256 | } |
| 257 | 257 | ||
| 258 | #ifdef CONFIG_NFSD_DEPRECATED | ||
| 258 | static inline void sunrpc_invalidate(struct cache_head *h, | 259 | static inline void sunrpc_invalidate(struct cache_head *h, |
| 259 | struct cache_detail *detail) | 260 | struct cache_detail *detail) |
| 260 | { | 261 | { |
| 261 | h->expiry_time = seconds_since_boot() - 1; | 262 | h->expiry_time = seconds_since_boot() - 1; |
| 262 | detail->nextcheck = seconds_since_boot(); | 263 | detail->nextcheck = seconds_since_boot(); |
| 263 | } | 264 | } |
| 265 | #endif /* CONFIG_NFSD_DEPRECATED */ | ||
| 266 | |||
| 264 | #endif /* _LINUX_SUNRPC_CACHE_H_ */ | 267 | #endif /* _LINUX_SUNRPC_CACHE_H_ */ |
