.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Cleancache frontend |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * |
---|
8 | 9 | * Copyright (C) 2009-2010 Oracle Corp. All rights reserved. |
---|
9 | 10 | * Author: Dan Magenheimer |
---|
10 | | - * |
---|
11 | | - * This work is licensed under the terms of the GNU GPL, version 2. |
---|
12 | 11 | */ |
---|
13 | 12 | |
---|
14 | 13 | #include <linux/module.h> |
---|
.. | .. |
---|
305 | 304 | { |
---|
306 | 305 | #ifdef CONFIG_DEBUG_FS |
---|
307 | 306 | struct dentry *root = debugfs_create_dir("cleancache", NULL); |
---|
308 | | - if (root == NULL) |
---|
309 | | - return -ENXIO; |
---|
| 307 | + |
---|
310 | 308 | debugfs_create_u64("succ_gets", 0444, root, &cleancache_succ_gets); |
---|
311 | 309 | debugfs_create_u64("failed_gets", 0444, root, &cleancache_failed_gets); |
---|
312 | 310 | debugfs_create_u64("puts", 0444, root, &cleancache_puts); |
---|