fs: convert sync_file_range to use errseq_t based error-tracking
authorJeff Layton <jlayton@redhat.com>
Mon, 24 Jul 2017 10:22:14 +0000 (06:22 -0400)
committerJeff Layton <jlayton@redhat.com>
Tue, 1 Aug 2017 12:39:29 +0000 (08:39 -0400)
commit6454568d961bc5de316014548838398174a128c4
tree8d50dfd232f00b212e8919f9870d937ecd98d2f2
parenta823e4589e68996436d16db4ede9a43b646332f9
fs: convert sync_file_range to use errseq_t based error-tracking

sync_file_range doesn't call down into the filesystem directly at all.
It only kicks off writeback of pagecache pages and optionally waits
on the result.

Convert sync_file_range to use errseq_t based error tracking, under the
assumption that most users will prefer this behavior when errors occur.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/sync.c