projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmap locking API: add mmap_lock_is_contended()
[linux-2.6-microblaze.git]
/
include
/
linux
/
mmap_lock.h
diff --git
a/include/linux/mmap_lock.h
b/include/linux/mmap_lock.h
index
0707671
..
18e7eae
100644
(file)
--- a/
include/linux/mmap_lock.h
+++ b/
include/linux/mmap_lock.h
@@
-87,4
+87,9
@@
static inline void mmap_assert_write_locked(struct mm_struct *mm)
VM_BUG_ON_MM(!rwsem_is_locked(&mm->mmap_lock), mm);
}
+static inline int mmap_lock_is_contended(struct mm_struct *mm)
+{
+ return rwsem_is_contended(&mm->mmap_lock);
+}
+
#endif /* _LINUX_MMAP_LOCK_H */