Re: [PATCH 02/11] iomap: copy the xfs writeback code to iomap.c

2019-10-08 Thread Dave Chinner
On Tue, Oct 08, 2019 at 08:34:36AM +0200, Christoph Hellwig wrote: > On Tue, Oct 08, 2019 at 08:43:53AM +1100, Dave Chinner wrote: > > > +static int > > > +iomap_ioend_compare(void *priv, struct list_head *a, struct list_head *b) > > > +{ > > > + struct iomap_ioend *ia, *ib; > > > + > > > + ia = co

Re: [PATCH 02/11] iomap: copy the xfs writeback code to iomap.c

2019-10-07 Thread Christoph Hellwig
On Tue, Oct 08, 2019 at 08:43:53AM +1100, Dave Chinner wrote: > > +static int > > +iomap_ioend_compare(void *priv, struct list_head *a, struct list_head *b) > > +{ > > + struct iomap_ioend *ia, *ib; > > + > > + ia = container_of(a, struct iomap_ioend, io_list); > > + ib = container_of(b, stru

Re: [PATCH 02/11] iomap: copy the xfs writeback code to iomap.c

2019-10-07 Thread Dave Chinner
On Sun, Oct 06, 2019 at 05:45:59PM +0200, Christoph Hellwig wrote: > Takes the xfs writeback code and copies it to iomap.c. A new structure > with three methods is added as the abstraction from the generic > writeback code to the file system. These methods are used to map > blocks, submit an ioen

[PATCH 02/11] iomap: copy the xfs writeback code to iomap.c

2019-10-06 Thread Christoph Hellwig
Takes the xfs writeback code and copies it to iomap.c. A new structure with three methods is added as the abstraction from the generic writeback code to the file system. These methods are used to map blocks, submit an ioend, and cancel a page that encountered an error before it was added to an io

[PATCH 02/11] iomap: copy the xfs writeback code to iomap.c

2019-10-01 Thread Christoph Hellwig
Takes the xfs writeback code and copies it to iomap.c. A new structure with three methods is added as the abstraction from the generic writeback code to the file system. These methods are used to map blocks, submit an ioend, and cancel a page that encountered an error before it was added to an io