projects
/
unionfs-2.6.22.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
461d4fd
)
Unionfs: debugging updates
author
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 13 Nov 2007 01:45:43 +0000
(20:45 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 03:48:57 +0000
(23:48 -0400)
Don't perform dentry+inode checks unless both are valid.
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 0af0f4e09b803972514ccb158be7569f2e8cb180..78c1f24f88154b76ac7493db2e33335bf6f7726e 100644
(file)
--- a/
fs/unionfs/debug.c
+++ b/
fs/unionfs/debug.c
@@
-299,7
+299,7
@@
check_inode:
* be NULL. But, check that all three are NULL: lower dentry, mnt,
* and inode.
*/
- if (S_ISDIR(inode->i_mode))
+ if (
dstart >= 0 && dend >= 0 &&
S_ISDIR(inode->i_mode))
for (bindex = dstart+1; bindex < dend; bindex++) {
lower_inode = unionfs_lower_inode_idx(inode, bindex);
lower_dentry = unionfs_lower_dentry_idx(dentry,