Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288821
b: refs/heads/master
c: 524b6c5
h: refs/heads/master
i:
  288819: 9efb28b
v: v3
  • Loading branch information
Eric W. Biederman authored and Greg Kroah-Hartman committed Jan 24, 2012
1 parent ca9be83 commit 5c7e208
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 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: cafa6b5dd7ce4f0e0a30be301be4efed587a7808
refs/heads/master: 524b6c5b39b931311dfe5a2f5abae2f5c9731676
6 changes: 0 additions & 6 deletions trunk/fs/sysfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ static int sysfs_link_sibling(struct sysfs_dirent *sd)
struct rb_node **node = &sd->s_parent->s_dir.children.rb_node;
struct rb_node *parent = NULL;

if (sysfs_type(sd) == SYSFS_DIR)
sd->s_parent->s_dir.subdirs++;

while (*node) {
struct sysfs_dirent *pos;
int result;
Expand Down Expand Up @@ -126,9 +123,6 @@ static int sysfs_link_sibling(struct sysfs_dirent *sd)
*/
static void sysfs_unlink_sibling(struct sysfs_dirent *sd)
{
if (sysfs_type(sd) == SYSFS_DIR)
sd->s_parent->s_dir.subdirs--;

rb_erase(&sd->s_rb, &sd->s_parent->s_dir.children);
}

Expand Down
3 changes: 0 additions & 3 deletions trunk/fs/sysfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,6 @@ static void sysfs_refresh_inode(struct sysfs_dirent *sd, struct inode *inode)
iattrs->ia_secdata,
iattrs->ia_secdata_len);
}

if (sysfs_type(sd) == SYSFS_DIR)
set_nlink(inode, sd->s_dir.subdirs + 2);
}

int sysfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
Expand Down
1 change: 0 additions & 1 deletion trunk/fs/sysfs/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ struct sysfs_open_dirent;
struct sysfs_elem_dir {
struct kobject *kobj;

unsigned long subdirs;
/* children rbtree starts here and goes through sd->s_rb */
struct rb_root children;
};
Expand Down

0 comments on commit 5c7e208

Please sign in to comment.