Thread (6 messages) 6 messages, 4 authors, 2021-05-21

Re: [PATCH] btrfs: check error value from btrfs_update_inode in tree log

From: David Sterba <hidden>
Date: 2021-05-21 12:58:07

On Wed, May 19, 2021 at 11:26:25AM -0400, Josef Bacik wrote:
Error injection testing uncovered a case where we ended up with invalid
link counts on an inode.  This happened because we failed to notice an
error when updating the inode while replaying the tree log, and
committed the transaction with an invalid file system.  Fix this by
checking the return value of btrfs_update_inode.  This resolved the link
count errors I was seeing, and we already properly handle passing up the
error values in these paths.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Added to misc-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help