diff options
| author | Kent Overstreet <[email protected]> | 2023-08-15 02:29:41 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2023-10-22 21:10:11 +0000 |
| commit | 62898dd12ba017c56c39a74ef891845118b0c190 (patch) | |
| tree | d93799799e1528e4e1d8a4b102cc40babadea42f /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: fix up wonky error handling in bch2_seek_pagecache_hole() (diff) | |
| download | kernel-62898dd12ba017c56c39a74ef891845118b0c190.tar.gz kernel-62898dd12ba017c56c39a74ef891845118b0c190.zip | |
bcachefs: Fix swallowing of data in buffered write path
In __bch2_buffered_write, if we fail to write to an entire !uptodate
folio, we have to back out the write, bail out and retry.
But we were missing an iov_iter_revert() call, so the data written to
the folio was lost and the rest of the write shifted to the wrong
offset.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions
