[PATCH v6 6/7] fs: pass iocb to generic_write_sync

2014-11-10 Thread Milosz Tanski
a crude version of fallocate. It has been switched to use an open coded variant instead. Signed-off-by: Christoph Hellwig [Small change in generic_write_sync() suggested by Anton Altaparmakov] Signed-off-by: Milosz Tanski Acked-by: Steven Whitehouse Acked-by: Anton Altaparmakov Review

Re: [Linux-NTFS-Dev] [PATCH v5 6/7] fs: pass iocb to generic_write_sync

2014-11-06 Thread Milosz Tanski
On Thu, Nov 6, 2014 at 5:52 AM, Anton Altaparmakov wrote: > Hi, > >> On 5 Nov 2014, at 23:14, Milosz Tanski wrote: >> >> From: Christoph Hellwig >> >> Clean up the generic_write_sync by just passing an iocb and a bytes >> written / negative errno

[PATCH v5 6/7] fs: pass iocb to generic_write_sync

2014-11-05 Thread Milosz Tanski
From: Christoph Hellwig Clean up the generic_write_sync by just passing an iocb and a bytes written / negative errno argument. In addition to simplifying the callers this also prepares for passing a per-operation O_DSYNC flag. Two callers didn't quite fit that scheme: - dio_complete didn't bo