commit 1ccec25f5946413cfff99134c6b94ae12b4e74c5
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Mon Apr 9 09:57:51 2007 -0400

    Unionfs: Actually verify if dentry's info node is locked
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
    Signed-off-by: Josef 'Jeff' Sipek <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h
index 3d1dd4c..e8c0fee 100644
--- a/fs/unionfs/fanout.h
+++ b/fs/unionfs/fanout.h
@@ -205,6 +205,7 @@ static inline void unionfs_unlock_dentry(struct dentry *d)
 
 static inline void verify_locked(struct dentry *d)
 {
+       BUG_ON(!mutex_is_locked(&UNIONFS_D(d)->lock));
 }
 
 #endif /* _FANOUT_H */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to