aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/sysfs/inode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c
index dd1344b007f5..ccb7d722c558 100644
--- a/fs/sysfs/inode.c
+++ b/fs/sysfs/inode.c
@@ -227,11 +227,8 @@ static inline void orphan_all_buffers(struct inode *node)
227 227
228 mutex_lock_nested(&node->i_mutex, I_MUTEX_CHILD); 228 mutex_lock_nested(&node->i_mutex, I_MUTEX_CHILD);
229 if (node->i_private) { 229 if (node->i_private) {
230 list_for_each_entry(buf, &set->associates, associates) { 230 list_for_each_entry(buf, &set->associates, associates)
231 down(&buf->sem);
232 buf->orphaned = 1; 231 buf->orphaned = 1;
233 up(&buf->sem);
234 }
235 } 232 }
236 mutex_unlock(&node->i_mutex); 233 mutex_unlock(&node->i_mutex);
237} 234}