commit eee040bb4537c5421246519f94c2dc7e4039a6bc
Author: Erez Zadok <[EMAIL PROTECTED]>
Date: Fri Feb 15 21:38:30 2008 -0500
Unionfs: improve debugging in copy_attr_times
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c
index 75e0267..d284aa5 100644
--- 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)
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs