| .. | .. | 
|---|
 | 1 | +// SPDX-License-Identifier: GPL-2.0-or-later  | 
|---|
| 1 | 2 |  /* Global fscache object list maintainer and viewer | 
|---|
| 2 | 3 |   * | 
|---|
| 3 | 4 |   * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. | 
|---|
| 4 | 5 |   * 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.  | 
|---|
| 10 | 6 |   */ | 
|---|
| 11 | 7 |   | 
|---|
| 12 | 8 |  #define FSCACHE_DEBUG_LEVEL COOKIE | 
|---|
| 13 | 9 |  #include <linux/module.h> | 
|---|
 | 10 | +#include <linux/proc_fs.h>  | 
|---|
| 14 | 11 |  #include <linux/seq_file.h> | 
|---|
| 15 | 12 |  #include <linux/slab.h> | 
|---|
| 16 | 13 |  #include <linux/key.h> | 
|---|
| .. | .. | 
|---|
| 409 | 406 |  	return seq_release(inode, file); | 
|---|
| 410 | 407 |  } | 
|---|
| 411 | 408 |   | 
|---|
| 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,  | 
|---|
| 417 | 414 |  }; | 
|---|