Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61465
b: refs/heads/master
c: e080e43
h: refs/heads/master
i:
  61463: 2cd0979
v: v3
  • Loading branch information
Tejun Heo authored and Greg Kroah-Hartman committed Jul 18, 2007
1 parent 7ff8e94 commit 7cff3ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c19c49a59ccf2162c0eb999de1ec60c0e07a533
refs/heads/master: e080e436f605877e47e4950f5386ed843badbb1b
10 changes: 5 additions & 5 deletions trunk/fs/sysfs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
sb->s_time_gran = 1;
sysfs_sb = sb;

inode = new_inode(sysfs_sb);
/* get root inode, initialize and unlock it */
inode = sysfs_get_inode(&sysfs_root);
if (!inode) {
pr_debug("sysfs: could not get root inode\n");
return -ENOMEM;
}

sysfs_init_inode(&sysfs_root, inode);

inode->i_op = &sysfs_dir_inode_operations;
inode->i_fop = &sysfs_dir_operations;
/* directory inodes start off with i_nlink == 2 (for "." entry) */
inc_nlink(inode);
inc_nlink(inode); /* directory, account for "." */
unlock_new_inode(inode);

/* instantiate and link root dentry */
root = d_alloc_root(inode);
if (!root) {
pr_debug("%s: could not get root dentry!\n",__FUNCTION__);
Expand Down

0 comments on commit 7cff3ad

Please sign in to comment.