aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/fs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index bb29b02d9bb6..bd0a1b2f3c02 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -467,6 +467,16 @@ struct block_device {
467 467
468int mapping_tagged(struct address_space *mapping, int tag); 468int mapping_tagged(struct address_space *mapping, int tag);
469 469
470static inline void i_mmap_lock_write(struct address_space *mapping)
471{
472 mutex_lock(&mapping->i_mmap_mutex);
473}
474
475static inline void i_mmap_unlock_write(struct address_space *mapping)
476{
477 mutex_unlock(&mapping->i_mmap_mutex);
478}
479
470/* 480/*
471 * Might pages of this file be mapped into userspace? 481 * Might pages of this file be mapped into userspace?
472 */ 482 */