Linux: fix afs_putname wrapper for pre-3.7 kernels

Make the compatibility function use the right type for pre-3.7
kernels.

Change-Id: I9222a3dc5a923c97dc36f69485d9cd3ecc6810fb
Reviewed-on: http://gerrit.openafs.org/8276
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
Marc Dionne 2012-10-19 18:31:53 +01:00 committed by Derrick Brashear
parent 0b538f21be
commit 115850076c

View File

@ -525,10 +525,11 @@ afs_dentry_open(struct dentry *dp, struct vfsmount *mnt, int flags, const struct
#endif
static inline void
afs_putname(struct filename *name) {
#if defined(HAVE_LINUX_PUTNAME)
afs_putname(char *name) {
putname(name);
#else
afs_putname(struct filename *name) {
kmem_cache_free(names_cachep, (void *)name);
#endif
}