The patch titled proc: cleanup: use seq_release_private() where appropriate has been added to the -mm tree. Its filename is proc-cleanup-use-seq_release_private-where-appropriate.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: proc: cleanup: use seq_release_private() where appropriate From: Martin Peschke <mp3@xxxxxxxxxx> We can save some lines of code by using seq_release_private(). Signed-off-by: Martin Peschke <mp3@xxxxxxxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/proc_misc.c | 9 +-------- 1 files changed, 1 insertion(+), 8 deletions(-) diff -puN fs/proc/proc_misc.c~proc-cleanup-use-seq_release_private-where-appropriate fs/proc/proc_misc.c --- a/fs/proc/proc_misc.c~proc-cleanup-use-seq_release_private-where-appropriate +++ a/fs/proc/proc_misc.c @@ -430,18 +430,11 @@ static int slabstats_open(struct inode * return ret; } -static int slabstats_release(struct inode *inode, struct file *file) -{ - struct seq_file *m = file->private_data; - kfree(m->private); - return seq_release(inode, file); -} - static const struct file_operations proc_slabstats_operations = { .open = slabstats_open, .read = seq_read, .llseek = seq_lseek, - .release = slabstats_release, + .release = seq_release_private, }; #endif #endif _ Patches currently in -mm which might be from mp3@xxxxxxxxxx are statistics-infrastructure-prerequisite-list.patch statistics-infrastructure-prerequisite-parser.patch statistics-infrastructure-prerequisite-parser-fix.patch add-for_each_substring-and-match_substring.patch statistics-infrastructure-prerequisite-timestamp.patch statistics-infrastructure-make-printk_clock-a-generic-kernel-wide-nsec-resolution.patch statistics-infrastructure-documentation.patch statistics-infrastructure.patch statistics-infrastructure-add-for_each_substring-and-match_substring-exploitation.patch statistics-infrastructure-fix-parsing-of-statistics-type-attribute.patch statistics-infrastructure-simplify-statistics-debugfs-write-function.patch statistics-infrastructure-simplify-statistics-debugfs-read-functions.patch statistics-infrastructure-fix-string-termination.patch statistics-infrastructure-small-cleanup-in-debugfs-write-function.patch statistics-infrastructure-fix-cpu-hot-unplug-related-memory-leak.patch statistics-infrastructure-exploitation-zfcp.patch md-cleanup-use-seq_release_private-where-appropriate.patch kallsyms-cleanup-use-seq_release_private-where-appropriate.patch proc-cleanup-use-seq_release_private-where-appropriate.patch sunrpc-cleanup-use-seq_release_private-where-appropriate.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html