* [PATCH] fscache: don't duplicate seq_release_private
@ 2018-08-16 13:37 Rasmus Villemoes
0 siblings, 0 replies; only message in thread
From: Rasmus Villemoes @ 2018-08-16 13:37 UTC (permalink / raw)
To: David Howells; +Cc: Rasmus Villemoes, linux-cachefs, linux-kernel
Replace fscache_objlist_release by the completely equivalent
seq_release_private.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
fs/fscache/object-list.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/fs/fscache/object-list.c b/fs/fscache/object-list.c
index 43e6e28c164f..3e1c97d34e25 100644
--- a/fs/fscache/object-list.c
+++ b/fs/fscache/object-list.c
@@ -397,21 +397,9 @@ static int fscache_objlist_open(struct inode *inode, struct file *file)
return 0;
}
-/*
- * clean up on close
- */
-static int fscache_objlist_release(struct inode *inode, struct file *file)
-{
- struct seq_file *m = file->private_data;
-
- kfree(m->private);
- m->private = NULL;
- return seq_release(inode, file);
-}
-
const struct file_operations fscache_objlist_fops = {
.open = fscache_objlist_open,
.read = seq_read,
.llseek = seq_lseek,
- .release = fscache_objlist_release,
+ .release = seq_release_private,
};
--
2.16.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-16 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-16 13:37 [PATCH] fscache: don't duplicate seq_release_private Rasmus Villemoes
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).