dax: Remove i_mmap_lock protection
authorJan Kara <jack@suse.cz>
Thu, 12 May 2016 16:29:20 +0000 (18:29 +0200)
committerRoss Zwisler <ross.zwisler@linux.intel.com>
Thu, 19 May 2016 21:28:40 +0000 (15:28 -0600)
commit4d9a2c8746671efbb0c27d3ae28c7474597a7aad
tree34fb766e63a1e503ba48482b34325dbb7bd3aafe
parentbc2466e4257369d0ebee2b6265070d323343fa72
dax: Remove i_mmap_lock protection

Currently faults are protected against truncate by filesystem specific
i_mmap_sem and page lock in case of hole page. Cow faults are protected
DAX radix tree entry locking. So there's no need for i_mmap_lock in DAX
code. Remove it.

Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
fs/dax.c
mm/memory.c