Loading fs/coda/cache.c +3 −7 Original line number Original line Diff line number Diff line Loading @@ -89,16 +89,12 @@ int coda_cache_check(struct inode *inode, int mask) /* this won't do any harm: just flag all children */ /* this won't do any harm: just flag all children */ static void coda_flag_children(struct dentry *parent, int flag) static void coda_flag_children(struct dentry *parent, int flag) { { struct list_head *child; struct dentry *de; struct dentry *de; spin_lock(&parent->d_lock); spin_lock(&parent->d_lock); list_for_each(child, &parent->d_subdirs) list_for_each_entry(de, &parent->d_subdirs, d_u.d_child) { { de = list_entry(child, struct dentry, d_u.d_child); /* don't know what to do with negative dentries */ /* don't know what to do with negative dentries */ if ( ! de->d_inode ) if (de->d_inode ) continue; coda_flag_inode(de->d_inode, flag); coda_flag_inode(de->d_inode, flag); } } spin_unlock(&parent->d_lock); spin_unlock(&parent->d_lock); Loading Loading
fs/coda/cache.c +3 −7 Original line number Original line Diff line number Diff line Loading @@ -89,16 +89,12 @@ int coda_cache_check(struct inode *inode, int mask) /* this won't do any harm: just flag all children */ /* this won't do any harm: just flag all children */ static void coda_flag_children(struct dentry *parent, int flag) static void coda_flag_children(struct dentry *parent, int flag) { { struct list_head *child; struct dentry *de; struct dentry *de; spin_lock(&parent->d_lock); spin_lock(&parent->d_lock); list_for_each(child, &parent->d_subdirs) list_for_each_entry(de, &parent->d_subdirs, d_u.d_child) { { de = list_entry(child, struct dentry, d_u.d_child); /* don't know what to do with negative dentries */ /* don't know what to do with negative dentries */ if ( ! de->d_inode ) if (de->d_inode ) continue; coda_flag_inode(de->d_inode, flag); coda_flag_inode(de->d_inode, flag); } } spin_unlock(&parent->d_lock); spin_unlock(&parent->d_lock); Loading