* [patch 035/102] autofs: use autofs4_free_ino() to kfree dentry data
@ 2016-10-11 20:52 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-10-11 20:52 UTC (permalink / raw)
To: torvalds, mm-commits, akpm, kusumi.tomohiro, raven
From: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Subject: autofs: use autofs4_free_ino() to kfree dentry data
kfree dentry data allocated by autofs4_new_ino() with autofs4_free_ino()
instead of raw kfree. (since we have the interface to free autofs_info*)
This patch was modified to remove the need to set the dentry info field to
NULL dew to a change in the previous patch.
Link: http://lkml.kernel.org/r/20160812024805.12352.43650.stgit@pluto.themaw.net
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/autofs4/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN fs/autofs4/inode.c~autofs-use-autofs4_free_ino-to-kfree-dentry-data fs/autofs4/inode.c
--- a/fs/autofs4/inode.c~autofs-use-autofs4_free_ino-to-kfree-dentry-data
+++ a/fs/autofs4/inode.c
@@ -340,7 +340,7 @@ fail_dput:
dput(root);
goto fail_free;
fail_ino:
- kfree(ino);
+ autofs4_free_ino(ino);
fail_free:
kfree(sbi);
s->s_fs_info = NULL;
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-11 20:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-11 20:52 [patch 035/102] autofs: use autofs4_free_ino() to kfree dentry data akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).