projects
/
unionfs-2.6.9.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af4217e
)
Unionfs: improve debugging in copy_attr_times
author
Erez Zadok
<ezk@cs.sunysb.edu>
Sat, 16 Feb 2008 02:45:34 +0000
(21:45 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Sat, 16 Feb 2008 02:45:34 +0000
(21:45 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/subr.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/subr.c
b/fs/unionfs/subr.c
index 8e3f4d78ce74f55905764e7c93f00d56fccd42de..8f040930e4f1cbac66a5888e1b446bb21a3f6d58 100644
(file)
--- a/
fs/unionfs/subr.c
+++ b/
fs/unionfs/subr.c
@@
-237,8
+237,14
@@
void unionfs_copy_attr_times(struct inode *upper)
int bindex;
struct inode *lower;
- if (!upper
|| ibstart(upper) < 0
)
+ if (!upper)
return;
+ if (ibstart(upper) < 0) {
+#ifdef CONFIG_UNION_FS_DEBUG
+ WARN_ON(ibstart(upper) < 0);
+#endif /* CONFIG_UNION_FS_DEBUG */
+ return;
+ }
for (bindex = ibstart(upper); bindex <= ibend(upper); bindex++) {
lower = unionfs_lower_inode_idx(upper, bindex);
if (!lower)