blob: a380c5e4f0bb38bb7329743c061d0e91b0ee8444 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef _LINUX_LOCKS_H
#define _LINUX_LOCKS_H
#ifndef _LINUX_MM_H
#include <linux/mm.h>
#endif
#ifndef _LINUX_PAGEMAP_H
#include <linux/pagemap.h>
#endif
/*
* super-block locking. Again, interrupts may only unlock
* a super-block (although even this isn't done right now.
* nfs may need it).
*/
static inline void lock_super(struct super_block * sb)
{
down(&sb->s_lock);
}
static inline void unlock_super(struct super_block * sb)
{
up(&sb->s_lock);
}
#endif /* _LINUX_LOCKS_H */
|