projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
049b3c1
)
affs: get rid of open-coded list_for_each_entry()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 9 Jun 2012 17:03:04 +0000
(13:03 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:32:52 +0000
(16:32 +0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/affs/amigaffs.c
patch
|
blob
|
history
diff --git
a/fs/affs/amigaffs.c
b/fs/affs/amigaffs.c
index
52a6407
..
1c7fd79
100644
(file)
--- a/
fs/affs/amigaffs.c
+++ b/
fs/affs/amigaffs.c
@@
-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);
}