diff options
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 8d67c2865dc3..12f4c5e6fd39 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -230,6 +230,20 @@ static inline int nfs4_has_session(const struct nfs_client *clp) | |||
230 | return 0; | 230 | return 0; |
231 | } | 231 | } |
232 | 232 | ||
233 | #ifdef CONFIG_NFS_V4_1 | ||
234 | extern void nfs41_sequence_free_slot(const struct nfs_client *, | ||
235 | struct nfs4_sequence_res *res); | ||
236 | #endif /* CONFIG_NFS_V4_1 */ | ||
237 | |||
238 | static inline void nfs4_sequence_free_slot(const struct nfs_client *clp, | ||
239 | struct nfs4_sequence_res *res) | ||
240 | { | ||
241 | #ifdef CONFIG_NFS_V4_1 | ||
242 | if (nfs4_has_session(clp)) | ||
243 | nfs41_sequence_free_slot(clp, res); | ||
244 | #endif /* CONFIG_NFS_V4_1 */ | ||
245 | } | ||
246 | |||
233 | /* | 247 | /* |
234 | * Determine the device name as a string | 248 | * Determine the device name as a string |
235 | */ | 249 | */ |