diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2007-10-15 08:51:31 -0400 |
---|---|---|
committer | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2007-10-15 08:51:31 -0400 |
commit | d475fd428ce77aa2a8bc650d230e17663a4f49c3 (patch) | |
tree | 19ba4a1b688a758b2e674f792e1d605896419cc8 /include/linux | |
parent | 58dfe883d3bc3b4c08c53a7f39e2ca3ec84f089e (diff) |
lockdep: per filesystem inode lock class
Give each filesystem its own inode lock class. The various filesystems have
different locking order wrt the inode locks; esp. the pseudo filesystems differ
from the rest.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 16421f662a7a..0cad20e12585 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1302,8 +1302,13 @@ struct file_system_type { | |||
1302 | struct module *owner; | 1302 | struct module *owner; |
1303 | struct file_system_type * next; | 1303 | struct file_system_type * next; |
1304 | struct list_head fs_supers; | 1304 | struct list_head fs_supers; |
1305 | |||
1305 | struct lock_class_key s_lock_key; | 1306 | struct lock_class_key s_lock_key; |
1306 | struct lock_class_key s_umount_key; | 1307 | struct lock_class_key s_umount_key; |
1308 | |||
1309 | struct lock_class_key i_lock_key; | ||
1310 | struct lock_class_key i_mutex_key; | ||
1311 | struct lock_class_key i_alloc_sem_key; | ||
1307 | }; | 1312 | }; |
1308 | 1313 | ||
1309 | extern int get_sb_bdev(struct file_system_type *fs_type, | 1314 | extern int get_sb_bdev(struct file_system_type *fs_type, |