diff options
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r-- | net/sunrpc/cache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index c80df455802d..8612044b9189 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -282,9 +282,9 @@ static DEFINE_SPINLOCK(cache_list_lock); | |||
282 | static struct cache_detail *current_detail; | 282 | static struct cache_detail *current_detail; |
283 | static int current_index; | 283 | static int current_index; |
284 | 284 | ||
285 | static struct file_operations cache_file_operations; | 285 | static const struct file_operations cache_file_operations; |
286 | static struct file_operations content_file_operations; | 286 | static const struct file_operations content_file_operations; |
287 | static struct file_operations cache_flush_operations; | 287 | static const struct file_operations cache_flush_operations; |
288 | 288 | ||
289 | static void do_cache_clean(struct work_struct *work); | 289 | static void do_cache_clean(struct work_struct *work); |
290 | static DECLARE_DELAYED_WORK(cache_cleaner, do_cache_clean); | 290 | static DECLARE_DELAYED_WORK(cache_cleaner, do_cache_clean); |
@@ -887,7 +887,7 @@ cache_release(struct inode *inode, struct file *filp) | |||
887 | 887 | ||
888 | 888 | ||
889 | 889 | ||
890 | static struct file_operations cache_file_operations = { | 890 | static const struct file_operations cache_file_operations = { |
891 | .owner = THIS_MODULE, | 891 | .owner = THIS_MODULE, |
892 | .llseek = no_llseek, | 892 | .llseek = no_llseek, |
893 | .read = cache_read, | 893 | .read = cache_read, |
@@ -1245,7 +1245,7 @@ static int content_release(struct inode *inode, struct file *file) | |||
1245 | return seq_release(inode, file); | 1245 | return seq_release(inode, file); |
1246 | } | 1246 | } |
1247 | 1247 | ||
1248 | static struct file_operations content_file_operations = { | 1248 | static const struct file_operations content_file_operations = { |
1249 | .open = content_open, | 1249 | .open = content_open, |
1250 | .read = seq_read, | 1250 | .read = seq_read, |
1251 | .llseek = seq_lseek, | 1251 | .llseek = seq_lseek, |
@@ -1297,7 +1297,7 @@ static ssize_t write_flush(struct file * file, const char __user * buf, | |||
1297 | return count; | 1297 | return count; |
1298 | } | 1298 | } |
1299 | 1299 | ||
1300 | static struct file_operations cache_flush_operations = { | 1300 | static const struct file_operations cache_flush_operations = { |
1301 | .open = nonseekable_open, | 1301 | .open = nonseekable_open, |
1302 | .read = read_flush, | 1302 | .read = read_flush, |
1303 | .write = write_flush, | 1303 | .write = write_flush, |