projects
/
unionfs-odf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
531e9ff
)
Unionfs: don't bother validating dentry if it has no lower branches
author
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 16 Nov 2007 18:45:32 +0000
(13:45 -0500)
committer
Rachita Kothiyal
<rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:14 +0000
(19:03 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/debug.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/debug.c
b/fs/unionfs/debug.c
index 68692d7858053f5acfdf0b79bf067f7e8ab56030..894bf7cecc03a14374f52862e693aac9884b4d22 100644
(file)
--- a/
fs/unionfs/debug.c
+++ b/
fs/unionfs/debug.c
@@
-132,6
+132,9
@@
void __unionfs_check_dentry(const struct dentry *dentry,
inode = dentry->d_inode;
dstart = dbstart(dentry);
dend = dbend(dentry);
+ /* don't check dentry/mnt if no lower branches */
+ if (dstart < 0 && dend < 0)
+ goto check_inode;
BUG_ON(dstart > dend);
if (unlikely((dstart == -1 && dend != -1) ||
@@
-212,6
+215,7
@@
void __unionfs_check_dentry(const struct dentry *dentry,
}
}
+check_inode:
/* for inodes now */
if (!inode)
return;