-
由 Jens Axboe 提交于
mainline inclusion from mainline-5.2-rc1 commit 22f96b38 category: feature bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=27 CVE: NA --------------------------- 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: NJens Axboe <axboe@kernel.dk> Conflicts: fs/sync.c include/linux/fs.h [ Patch c553ea4f("fs/sync.c: sync_file_range(2) may use WB_SYNC_ALL writeback") applied earlier. ] Signed-off-by: NZhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Nyangerkun <yangerkun@huawei.com> Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com> Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
6ca0e717