diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-07-24 10:07:19 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-07-24 10:07:19 +1000 |
commit | 921f1cfab52c3215ea9e6ceae133aa4ffc2dc8c0 (patch) | |
tree | cf5d9980b3b00c69c67717282be3a93b24f2f136 /fs | |
parent | 6642fd330a1cc3459ea1dcd7fae26442793f4573 (diff) | |
parent | 7b449c371de2e632694ef07dbcb3f2e1bf5749bb (diff) |
Merge branch 'quilt/driver-core.current'
Diffstat (limited to 'fs')
-rw-r--r-- | fs/sysfs/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index d88d0fac9fa5..14f2d71ea3ce 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c @@ -939,8 +939,10 @@ again: /* Remove from old parent's list and insert into new parent's list. */ sysfs_unlink_sibling(sd); sysfs_get(new_parent_sd); + drop_nlink(old_parent->d_inode); sysfs_put(sd->s_parent); sd->s_parent = new_parent_sd; + inc_nlink(new_parent->d_inode); sysfs_link_sibling(sd); out_unlock: |