mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
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:
parent
0b538f21be
commit
115850076c
@ -525,10 +525,11 @@ afs_dentry_open(struct dentry *dp, struct vfsmount *mnt, int flags, const struct
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
afs_putname(struct filename *name) {
|
|
||||||
#if defined(HAVE_LINUX_PUTNAME)
|
#if defined(HAVE_LINUX_PUTNAME)
|
||||||
|
afs_putname(char *name) {
|
||||||
putname(name);
|
putname(name);
|
||||||
#else
|
#else
|
||||||
|
afs_putname(struct filename *name) {
|
||||||
kmem_cache_free(names_cachep, (void *)name);
|
kmem_cache_free(names_cachep, (void *)name);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user