hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/fscache/object-list.c
....@@ -1,16 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* Global fscache object list maintainer and viewer
23 *
34 * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved.
45 * Written by David Howells (dhowells@redhat.com)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public Licence
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the Licence, or (at your option) any later version.
106 */
117
128 #define FSCACHE_DEBUG_LEVEL COOKIE
139 #include <linux/module.h>
10
+#include <linux/proc_fs.h>
1411 #include <linux/seq_file.h>
1512 #include <linux/slab.h>
1613 #include <linux/key.h>
....@@ -409,9 +406,9 @@
409406 return seq_release(inode, file);
410407 }
411408
412
-const struct file_operations fscache_objlist_fops = {
413
- .open = fscache_objlist_open,
414
- .read = seq_read,
415
- .llseek = seq_lseek,
416
- .release = fscache_objlist_release,
409
+const struct proc_ops fscache_objlist_proc_ops = {
410
+ .proc_open = fscache_objlist_open,
411
+ .proc_read = seq_read,
412
+ .proc_lseek = seq_lseek,
413
+ .proc_release = fscache_objlist_release,
417414 };