fs: add sync_file_range() helper
authorJens Axboe <axboe@kernel.dk>
Tue, 9 Apr 2019 20:51:48 +0000 (14:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 May 2019 20:08:53 +0000 (14:08 -0600)
commit22f96b3808c12a218e9a3bce6e1bfbd74efbe374
tree3a8808dea0867ba433751932bac0c264a4284df1
parentde0617e467171ba44c73efd1ba63f101b164a035
fs: add sync_file_range() helper

This just pulls out the ksys_sync_file_range() code to work on a struct
file instead of an fd, so we can use it elsewhere.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/sync.c
include/linux/fs.h