GIT: unionfs2-2.6.27.y: Unionfs: Actually verify if dentry's info node is locked
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:15:57 EDT 2010
commit 8b2a0a1b7a70599640865881acd7494a354167d9
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Mon Apr 9 09:57:51 2007 -0400
Unionfs: Actually verify if dentry's info node is locked
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
Signed-off-by: Josef 'Jeff' Sipek <jsipek at cs.sunysb.edu>
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 */
More information about the unionfs-cvs
mailing list