]> git.baikalelectronics.ru Git - kernel.git/commit
fs: Introduce filemap_range_has_page()
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 20 Jun 2017 12:05:41 +0000 (07:05 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Jun 2017 13:12:03 +0000 (07:12 -0600)
commit2fb11e2c136d99a7e3ba5cd4b5d76cbcc9327c09
tree44a50b5cfa0379939111ef900f73b4c2657c83a4
parentdcffd25b37fe61f480ded65c9c5c192967900854
fs: Introduce filemap_range_has_page()

filemap_range_has_page() return true if the file's mapping has
a page within the range mentioned. This function will be used
to check if a write() call will cause a writeback of previous
writes.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fs.h
mm/filemap.c