[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190812171832.GA24564@infradead.org>
Date: Mon, 12 Aug 2019 10:18:32 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Matthew Bobrowski <mbobrowski@...browski.org>
Cc: linux-ext4@...r.kernel.org, linux-fsdevel@...r.kernel.org,
jack@...e.cz, tytso@....edu, riteshh@...ux.ibm.com
Subject: Re: [PATCH 3/5] iomap: modify ->end_io() calling convention
please add linux-xfs to the cc list for the whole series. Besides
touching xfs itself it is also mentioned in MAINTAINERS for the iomap
code.
On Mon, Aug 12, 2019 at 10:53:11PM +1000, Matthew Bobrowski wrote:
> - if (size <= 0)
> - return size;
> + if (error || !size)
> + return error ? error : size;
This should be:
if (error)
return error;
if (!size)
return 0;
> if (flags & IOMAP_DIO_COW) {
> - error = xfs_reflink_end_cow(ip, offset, size);
> - if (error)
> + ret = xfs_reflink_end_cow(ip, offset, size);
> + if (ret)
I think we can just keep reusing error here.
> +typedef int (iomap_dio_end_io_t)(struct kiocb *iocb, ssize_t size,
> + ssize_t error, unsigned int flags);
error should be an int and not a ssize_t.
Powered by blists - more mailing lists