]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/gnu/fs/xfs/FreeBSD/support/mrlock.c
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.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 }