From: Erez Zadok Date: Mon, 9 Apr 2007 13:57:51 +0000 (-0400) Subject: Unionfs: Actually verify if dentry's info node is locked X-Git-Tag: unionfs-2.5.9.2~487 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=910f1bf5367a478f21b22d8ca94d03e6df1a0623;p=unionfs-2.6.38.y.git Unionfs: Actually verify if dentry's info node is locked Signed-off-by: Erez Zadok Signed-off-by: Josef 'Jeff' Sipek --- diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h index 3d1dd4c647a..e8c0feeccb2 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 */