Unionfs: Actually verify if dentry's info node is locked
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 9 Apr 2007 13:57:51 +0000 (09:57 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 02:31:29 +0000 (21:31 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/fanout.h

index 3d1dd4c647a16aa4ec14d0322bf07cd9861de6b1..e8c0feeccb226d4d12c721c4d675d30ec6655a74 100644 (file)
@@ -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 */