dax: assert that i_rwsem is held exclusive for writes
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Feb 2017 19:43:13 +0000 (14:43 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 8 Feb 2017 19:43:13 +0000 (14:43 -0500)
commit168316db3583253b9e5d46392e5b9d03d531406f
tree1d402c8b9dbc959dfc546a1cef16581b2b09a711
parentff5462e39ca1d27e530d088c4e38741fd9cddad4
dax: assert that i_rwsem is held exclusive for writes

Make sure all callers follow the same locking protocol, given that DAX
transparantly replaced the normal buffered I/O path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/dax.c