Re: [PATCH] btrfs: Correct assignment of pos

2017-07-04 Thread Marc Dionne
On Tue, Jul 4, 2017 at 9:02 PM, Goldwyn Rodrigues wrote: > From: Goldwyn Rodrigues > > Assigning pos for usage early messes up in append mode, where > the pos is re-assigned in generic_write_checks(). Re-assign > pos to get the correct position to write from iocb->ki_pos. > > Fixes: edf064e7c6fe

[PATCH] btrfs: Correct assignment of pos

2017-07-04 Thread Goldwyn Rodrigues
From: Goldwyn Rodrigues Assigning pos for usage early messes up in append mode, where the pos is re-assigned in generic_write_checks(). Re-assign pos to get the correct position to write from iocb->ki_pos. Fixes: edf064e7c6fe ("btrfs: nowait aio support") Signed-off-by: Goldwyn Rodrigues Tested