aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/reiserfs_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/reiserfs_fs.h')
-rw-r--r--include/linux/reiserfs_fs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h
index 4351b49e2b1..35d3f459b0a 100644
--- a/include/linux/reiserfs_fs.h
+++ b/include/linux/reiserfs_fs.h
@@ -106,6 +106,14 @@ reiserfs_mutex_lock_nested_safe(struct mutex *m, unsigned int subclass,
106 reiserfs_write_lock(s); 106 reiserfs_write_lock(s);
107} 107}
108 108
109static inline void
110reiserfs_down_read_safe(struct rw_semaphore *sem, struct super_block *s)
111{
112 reiserfs_write_unlock(s);
113 down_read(sem);
114 reiserfs_write_lock(s);
115}
116
109/* 117/*
110 * When we schedule, we usually want to also release the write lock, 118 * When we schedule, we usually want to also release the write lock,
111 * according to the previous bkl based locking scheme of reiserfs. 119 * according to the previous bkl based locking scheme of reiserfs.