vfs: switch i_dentry/d_alias to hlist

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2012-06-09 13:51:19 -04:00
commit b3d9b7a3c7
13 changed files with 36 additions and 28 deletions

View file

@ -52,6 +52,7 @@ void __fsnotify_vfsmount_delete(struct vfsmount *mnt)
void __fsnotify_update_child_dentry_flags(struct inode *inode)
{
struct dentry *alias;
struct hlist_node *p;
int watched;
if (!S_ISDIR(inode->i_mode))
@ -63,7 +64,7 @@ void __fsnotify_update_child_dentry_flags(struct inode *inode)
spin_lock(&inode->i_lock);
/* run all of the dentries associated with this inode. Since this is a
* directory, there damn well better only be one item on this list */
list_for_each_entry(alias, &inode->i_dentry, d_alias) {
hlist_for_each_entry(alias, p, &inode->i_dentry, d_alias) {
struct dentry *child;
/* run all of the children of the original inode and fix their