Commit 1d674107 authored by Al Viro's avatar Al Viro

coda: use list_for_each_entry

Signed-off-by: default avatarAl Viro <>
parent b3d9b7a3
......@@ -89,17 +89,13 @@ int coda_cache_check(struct inode *inode, int mask)
/* this won't do any harm: just flag all children */
static void coda_flag_children(struct dentry *parent, int flag)
struct list_head *child;
struct dentry *de;
list_for_each(child, &parent->d_subdirs)
de = list_entry(child, struct dentry, d_u.d_child);
list_for_each_entry(de, &parent->d_subdirs, d_u.d_child) {
/* don't know what to do with negative dentries */
if ( ! de->d_inode )
coda_flag_inode(de->d_inode, flag);
if (de->d_inode )
coda_flag_inode(de->d_inode, flag);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment