diff options
-rw-r--r-- | include/linux/ceph/debugfs.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/ceph/debugfs.h b/include/linux/ceph/debugfs.h index 1df086d7882d..29cf897cc5cd 100644 --- a/include/linux/ceph/debugfs.h +++ b/include/linux/ceph/debugfs.h | |||
@@ -7,13 +7,7 @@ | |||
7 | #define CEPH_DEFINE_SHOW_FUNC(name) \ | 7 | #define CEPH_DEFINE_SHOW_FUNC(name) \ |
8 | static int name##_open(struct inode *inode, struct file *file) \ | 8 | static int name##_open(struct inode *inode, struct file *file) \ |
9 | { \ | 9 | { \ |
10 | struct seq_file *sf; \ | 10 | return single_open(file, name, inode->i_private); \ |
11 | int ret; \ | ||
12 | \ | ||
13 | ret = single_open(file, name, NULL); \ | ||
14 | sf = file->private_data; \ | ||
15 | sf->private = inode->i_private; \ | ||
16 | return ret; \ | ||
17 | } \ | 11 | } \ |
18 | \ | 12 | \ |
19 | static const struct file_operations name##_fops = { \ | 13 | static const struct file_operations name##_fops = { \ |