diff options
Diffstat (limited to 'include/linux/reiserfs_fs.h')
-rw-r--r-- | include/linux/reiserfs_fs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h index a05b4a20768d..4351b49e2b1e 100644 --- a/include/linux/reiserfs_fs.h +++ b/include/linux/reiserfs_fs.h | |||
@@ -97,6 +97,15 @@ static inline void reiserfs_mutex_lock_safe(struct mutex *m, | |||
97 | reiserfs_write_lock(s); | 97 | reiserfs_write_lock(s); |
98 | } | 98 | } |
99 | 99 | ||
100 | static inline void | ||
101 | reiserfs_mutex_lock_nested_safe(struct mutex *m, unsigned int subclass, | ||
102 | struct super_block *s) | ||
103 | { | ||
104 | reiserfs_write_unlock(s); | ||
105 | mutex_lock_nested(m, subclass); | ||
106 | reiserfs_write_lock(s); | ||
107 | } | ||
108 | |||
100 | /* | 109 | /* |
101 | * When we schedule, we usually want to also release the write lock, | 110 | * When we schedule, we usually want to also release the write lock, |
102 | * according to the previous bkl based locking scheme of reiserfs. | 111 | * according to the previous bkl based locking scheme of reiserfs. |