Re: [PATCH 31/33] iomap: add support for sub-pagesize buffered I/O without buffer heads

2018-05-15 Thread Dave Chinner
On Tue, May 15, 2018 at 08:47:25AM -0500, Goldwyn Rodrigues wrote: > On 05/15/2018 02:26 AM, Christoph Hellwig wrote: > > On Mon, May 14, 2018 at 11:00:08AM -0500, Goldwyn Rodrigues wrote: > >>> + if (iop || i_blocksize(inode) == PAGE_SIZE) > >>> + return iop; > >> > >> Why is this an

Re: [PATCH 31/33] iomap: add support for sub-pagesize buffered I/O without buffer heads

2018-05-15 Thread Goldwyn Rodrigues
On 05/15/2018 02:26 AM, Christoph Hellwig wrote: > On Mon, May 14, 2018 at 11:00:08AM -0500, Goldwyn Rodrigues wrote: >>> + if (iop || i_blocksize(inode) == PAGE_SIZE) >>> + return iop; >> >> Why is this an equal comparison operator? Shouldn't this be >= to >> include filesystem

Re: [PATCH 31/33] iomap: add support for sub-pagesize buffered I/O without buffer heads

2018-05-15 Thread Christoph Hellwig
On Mon, May 14, 2018 at 11:00:08AM -0500, Goldwyn Rodrigues wrote: > > + if (iop || i_blocksize(inode) == PAGE_SIZE) > > + return iop; > > Why is this an equal comparison operator? Shouldn't this be >= to > include filesystem blocksize greater than PAGE_SIZE? Which filesystems would

Re: [PATCH 31/33] iomap: add support for sub-pagesize buffered I/O without buffer heads

2018-05-14 Thread Goldwyn Rodrigues
On 05/09/2018 02:48 AM, Christoph Hellwig wrote: > After already supporting a simple implementation of buffered writes for > the blocksize == PAGE_SIZE case in the last commit this adds full support > even for smaller block sizes. There are three bits of per-block > information in the

[PATCH 31/33] iomap: add support for sub-pagesize buffered I/O without buffer heads

2018-05-09 Thread Christoph Hellwig
After already supporting a simple implementation of buffered writes for the blocksize == PAGE_SIZE case in the last commit this adds full support even for smaller block sizes. There are three bits of per-block information in the buffer_head structure that really matter for the iomap read and