Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46619
b: refs/heads/master
c: d3fc373
h: refs/heads/master
i:
  46617: 375c5b3
  46615: 28236af
v: v3
  • Loading branch information
Frederik Deweerdt authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent f182290 commit 6ea1491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 94bebf4d1b8e7719f0f3944c037a21cfd99a4af7
refs/heads/master: d3fc373ac5061cab7a654502b942e7d00e77f733
4 changes: 2 additions & 2 deletions trunk/fs/sysfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static inline void orphan_all_buffers(struct inode *node)
struct sysfs_buffer_collection *set = node->i_private;
struct sysfs_buffer *buf;

mutex_lock(&node->i_mutex);
mutex_lock_nested(&node->i_mutex, I_MUTEX_CHILD);
if (node->i_private) {
list_for_each_entry(buf, &set->associates, associates) {
down(&buf->sem);
Expand Down Expand Up @@ -272,7 +272,7 @@ int sysfs_hash_and_remove(struct dentry * dir, const char * name)
return -ENOENT;

parent_sd = dir->d_fsdata;
mutex_lock(&dir->d_inode->i_mutex);
mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT);
list_for_each_entry(sd, &parent_sd->s_children, s_sibling) {
if (!sd->s_element)
continue;
Expand Down

0 comments on commit 6ea1491

Please sign in to comment.