mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
vfs: switch i_dentry/d_alias to hlist
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
9f713878f2
commit
b3d9b7a3c7
13 changed files with 36 additions and 28 deletions
|
|
@ -125,8 +125,9 @@ static void
|
|||
affs_fix_dcache(struct inode *inode, u32 entry_ino)
|
||||
{
|
||||
struct dentry *dentry;
|
||||
struct hlist_node *p;
|
||||
spin_lock(&inode->i_lock);
|
||||
list_for_each_entry(dentry, &inode->i_dentry, d_alias) {
|
||||
hlist_for_each_entry(dentry, p, &inode->i_dentry, d_alias) {
|
||||
if (entry_ino == (u32)(long)dentry->d_fsdata) {
|
||||
dentry->d_fsdata = (void *)inode->i_ino;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue