提交 fb9273f2 编写于 作者: A Al Viro 提交者: David Howells

drm: don't bother with super_operations and dentry_operations

defaults will do just fine.
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 a188339c
...@@ -532,21 +532,13 @@ EXPORT_SYMBOL(drm_dev_unplug); ...@@ -532,21 +532,13 @@ EXPORT_SYMBOL(drm_dev_unplug);
static int drm_fs_cnt; static int drm_fs_cnt;
static struct vfsmount *drm_fs_mnt; static struct vfsmount *drm_fs_mnt;
static const struct dentry_operations drm_fs_dops = {
.d_dname = simple_dname,
};
static const struct super_operations drm_fs_sops = {
.statfs = simple_statfs,
};
static struct dentry *drm_fs_mount(struct file_system_type *fs_type, int flags, static struct dentry *drm_fs_mount(struct file_system_type *fs_type, int flags,
const char *dev_name, void *data) const char *dev_name, void *data)
{ {
return mount_pseudo(fs_type, return mount_pseudo(fs_type,
"drm:", "drm:",
&drm_fs_sops, NULL,
&drm_fs_dops, NULL,
0x010203ff); 0x010203ff);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册