commit 2bbdc8a877794b24a5cebca829e3480488982106
Author: Erez Zadok <[EMAIL PROTECTED]>
Date: Wed Jan 9 19:15:16 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 ad3cc9a..1a8f308 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -500,9 +500,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