Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: convert to errseq_t based writeback error tracking

This is a very minimal conversion to errseq_t based error tracking
for raw block device access. Just have it use the standard
file_write_and_wait_range call.

Note that there are internal callers that call sync_blockdev
and the like that are not affected by this. They'll continue
to use the AS_EIO/AS_ENOSPC flags for error reporting like
they always have for now.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>

+1 -1
+1 -1
fs/block_dev.c
··· 624 624 struct block_device *bdev = I_BDEV(bd_inode); 625 625 int error; 626 626 627 - error = filemap_write_and_wait_range(filp->f_mapping, start, end); 627 + error = file_write_and_wait_range(filp, start, end); 628 628 if (error) 629 629 return error; 630 630