]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/gnu/fs/xfs/FreeBSD/support/mrlock.c
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / gnu / fs / xfs / FreeBSD / support / mrlock.c
1 #include <sys/param.h>
2 #include <sys/pcpu.h>
3 #include <support/debug.h>
4 #include <support/mrlock.h>
5
6 int
7 ismrlocked(mrlock_t *mrp, int type)
8 {
9
10         sx_assert(mrp, SX_LOCKED);
11         if (type == MR_UPDATE)
12                 return sx_xlocked(mrp);
13         return 1;
14 }