From: Erez_Zadok Date: Tue, 29 May 2007 03:24:58 +0000 (-0400) Subject: invariants: don't complain if no lower dentry of a deleted dentry X-Git-Tag: unionfs-2.1.1~74 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=8bbc23bb5955fa5b351a52751b01d3a37673acf3;p=unionfs-2.6.37.y.git invariants: don't complain if no lower dentry of a deleted dentry Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c index 821ef653238..ab168cc6909 100644 --- a/fs/unionfs/debug.c +++ b/fs/unionfs/debug.c @@ -148,9 +148,10 @@ void __unionfs_check_dentry(const struct dentry *dentry, /* * Directories can have NULL lower inodes in b/t start/end, but NOT * if at the start/end range. Ignore this rule, however, if this is - * a NULL dentry. + * a NULL dentry or a deleted dentry. */ - if (inode && !(inode && S_ISDIR(inode->i_mode) && + if (!d_deleted((struct dentry *) dentry) && + inode && !(inode && S_ISDIR(inode->i_mode) && bindex > dstart && bindex < dend)) { PRINT_CALLER; printk(" CD2: dentry/lower=%p:%p(%p) bindex=%d dstart/end=%d:%d\n",