GIT: unionfs2-2.6.27.y: Unionfs: improve debugging in copy_attr_times
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:48 EDT 2010
commit 92c37eb5c61ee45832e27c562ec3251dc0153b2a
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Fri Feb 15 17:18:48 2008 -0500
Unionfs: improve debugging in copy_attr_times
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c
index 68a6280..1a40f63 100644
--- a/fs/unionfs/subr.c
+++ b/fs/unionfs/subr.c
@@ -247,8 +247,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)
More information about the unionfs-cvs
mailing list