sysfs, kernfs: drop unused params from sysfs_fill_super()
sysfs_fill_super() takes three params - @sb, @data and @silent - but uses only @sb. Drop the latter two. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2072f1afdd
commit
ccc532dc12
|
@ -41,7 +41,7 @@ struct sysfs_dirent sysfs_root = {
|
||||||
.s_ino = 1,
|
.s_ino = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
|
static int sysfs_fill_super(struct super_block *sb)
|
||||||
{
|
{
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
struct dentry *root;
|
struct dentry *root;
|
||||||
|
@ -123,7 +123,7 @@ static struct dentry *sysfs_mount(struct file_system_type *fs_type,
|
||||||
if (IS_ERR(sb))
|
if (IS_ERR(sb))
|
||||||
return ERR_CAST(sb);
|
return ERR_CAST(sb);
|
||||||
if (!sb->s_root) {
|
if (!sb->s_root) {
|
||||||
error = sysfs_fill_super(sb, data, flags & MS_SILENT ? 1 : 0);
|
error = sysfs_fill_super(sb);
|
||||||
if (error) {
|
if (error) {
|
||||||
deactivate_locked_super(sb);
|
deactivate_locked_super(sb);
|
||||||
return ERR_PTR(error);
|
return ERR_PTR(error);
|
||||||
|
|
Loading…
Reference in New Issue