commit 63a08553155e2953a6f2aa6e8366534ebf592996
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Wed Jan 9 19:15:55 2008 -0500

    Unionfs: ensure we have lower dentries in d_iput
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index 29ebf0b..77fe637 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -498,9 +498,10 @@ static void unionfs_d_iput(struct dentry *dentry, struct 
inode *inode)
 {
        int bindex, rc;
 
+       BUG_ON(!dentry);
        unionfs_read_lock(dentry->d_sb, UNIONFS_SMUTEX_CHILD);
 
-       if (dbstart(dentry) < 0)
+       if (!UNIONFS_D(dentry) || dbstart(dentry) < 0)
                goto drop_lower_inodes;
        for (bindex = dbstart(dentry); bindex <= dbend(dentry); bindex++) {
                if (unionfs_lower_mnt_idx(dentry, bindex)) {
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to