aboutsummaryrefslogtreecommitdiffstats
path: root/fs/affs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-06-09 13:51:19 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-14 08:32:55 -0400
commitb3d9b7a3c752dc4b6976a4ff7b8298887a5b734d (patch)
treece0d4c84328890dd63c9c4cb3e281b6b3476f85f /fs/affs
parent9f713878f22e0b2d34d62df0ca55f65166375634 (diff)
vfs: switch i_dentry/d_alias to hlist
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/affs')
-rw-r--r--fs/affs/amigaffs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c
index 843cdc994804..eb82ee53ee0b 100644
--- a/fs/affs/amigaffs.c
+++ b/fs/affs/amigaffs.c
@@ -125,8 +125,9 @@ static void
125affs_fix_dcache(struct inode *inode, u32 entry_ino) 125affs_fix_dcache(struct inode *inode, u32 entry_ino)
126{ 126{
127 struct dentry *dentry; 127 struct dentry *dentry;
128 struct hlist_node *p;
128 spin_lock(&inode->i_lock); 129 spin_lock(&inode->i_lock);
129 list_for_each_entry(dentry, &inode->i_dentry, d_alias) { 130 hlist_for_each_entry(dentry, p, &inode->i_dentry, d_alias) {
130 if (entry_ino == (u32)(long)dentry->d_fsdata) { 131 if (entry_ino == (u32)(long)dentry->d_fsdata) {
131 dentry->d_fsdata = (void *)inode->i_ino; 132 dentry->d_fsdata = (void *)inode->i_ino;
132 break; 133 break;