From: Erez Zadok Date: Fri, 15 Feb 2008 22:18:48 +0000 (-0500) Subject: Unionfs: improve debugging in copy_attr_times X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=74a6647291900d368933d684d8c0f560870c60d3;p=unionfs-lite.git Unionfs: improve debugging in copy_attr_times Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c index 68a628065fc..1a40f63ffbb 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)