commit bf68797e6e8199f3842b7b26d68ec530cd171b77
Author: Erez Zadok <[EMAIL PROTECTED]>
Date: Fri Feb 15 21:45:34 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 8e3f4d7..8f04093 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