Go to the documentation of this file.
18 #ifndef __XFS_SUPPORT_MRLOCK_H__
19 #define __XFS_SUPPORT_MRLOCK_H__
31 #define mrinit(mrp, name) \
32 do { (mrp)->mr_writer = 0; init_rwsem(&(mrp)->mr_lock); } while (0)
34 #define mrinit(mrp, name) \
35 do { init_rwsem(&(mrp)->mr_lock); } while (0)
38 #define mrlock_init(mrp, t,n,s) mrinit(mrp, n)
39 #define mrfree(mrp) do { } while (0)
54 static inline int mrtryaccess(
mrlock_t *mrp)
59 static inline int mrtryupdate(
mrlock_t *mrp)
69 static inline void mrunlock_excl(
mrlock_t *mrp)
77 static inline void mrunlock_shared(
mrlock_t *mrp)
82 static inline void mrdemote(
mrlock_t *mrp)