Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312881
b: refs/heads/master
c: 1d67410
h: refs/heads/master
i:
  312879: b8be360
v: v3
  • Loading branch information
Al Viro committed Jul 14, 2012
1 parent 80774e0 commit 7af57ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3d9b7a3c752dc4b6976a4ff7b8298887a5b734d
refs/heads/master: 1d674107ea4b68669e012e654d64369b7f2bb250
10 changes: 3 additions & 7 deletions trunk/fs/coda/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

spin_lock(&parent->d_lock);
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 )
continue;
coda_flag_inode(de->d_inode, flag);
if (de->d_inode )
coda_flag_inode(de->d_inode, flag);
}
spin_unlock(&parent->d_lock);
return;
Expand Down

0 comments on commit 7af57ce

Please sign in to comment.