Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312876
b: refs/heads/master
c: 3084ee9
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jul 14, 2012
1 parent a599936 commit fbb3a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 049b3c10eecd0a5f3605fa3cd13f638593213ccb
refs/heads/master: 3084ee95f08ce353ae26c18c7627c4e9786983ca
7 changes: 1 addition & 6 deletions trunk/fs/affs/amigaffs.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,13 @@ affs_fix_dcache(struct dentry *dentry, u32 entry_ino)
{
struct inode *inode = dentry->d_inode;
void *data = dentry->d_fsdata;
struct list_head *head, *next;

spin_lock(&inode->i_lock);
head = &inode->i_dentry;
next = head->next;
while (next != head) {
dentry = list_entry(next, struct dentry, d_alias);
list_for_each_entry(dentry, &inode->i_dentry, d_alias) {
if (entry_ino == (u32)(long)dentry->d_fsdata) {
dentry->d_fsdata = data;
break;
}
next = next->next;
}
spin_unlock(&inode->i_lock);
}
Expand Down

0 comments on commit fbb3a1d

Please sign in to comment.