mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
tidy up after d_make_root() conversion
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ca85c07809
commit
318ceed088
6 changed files with 26 additions and 53 deletions
|
|
@ -238,7 +238,6 @@ struct dentry *oprofilefs_mkdir(struct super_block *sb,
|
|||
static int oprofilefs_fill_super(struct super_block *sb, void *data, int silent)
|
||||
{
|
||||
struct inode *root_inode;
|
||||
struct dentry *root_dentry;
|
||||
|
||||
sb->s_blocksize = PAGE_CACHE_SIZE;
|
||||
sb->s_blocksize_bits = PAGE_CACHE_SHIFT;
|
||||
|
|
@ -251,13 +250,11 @@ static int oprofilefs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
return -ENOMEM;
|
||||
root_inode->i_op = &simple_dir_inode_operations;
|
||||
root_inode->i_fop = &simple_dir_operations;
|
||||
root_dentry = d_make_root(root_inode);
|
||||
if (!root_dentry)
|
||||
sb->s_root = d_make_root(root_inode);
|
||||
if (!sb->s_root)
|
||||
return -ENOMEM;
|
||||
|
||||
sb->s_root = root_dentry;
|
||||
|
||||
oprofile_create_files(sb, root_dentry);
|
||||
oprofile_create_files(sb, sb->s_root);
|
||||
|
||||
// FIXME: verify kill_litter_super removes our dentries
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue