mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
bcachefs: fix bch2_debugfs_flush_buf() when tabstops are in use
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
6b86da9282
commit
8c3fc7cca3
|
|
@ -320,6 +320,11 @@ ssize_t bch2_debugfs_flush_buf(struct dump_iter *i)
|
|||
i->buf.pos -= copied;
|
||||
memmove(i->buf.buf, i->buf.buf + copied, i->buf.pos);
|
||||
|
||||
if (i->buf.last_newline >= copied)
|
||||
i->buf.last_newline -= copied;
|
||||
if (i->buf.last_field >= copied)
|
||||
i->buf.last_field -= copied;
|
||||
|
||||
if (copied != bytes)
|
||||
return -EFAULT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user