Re: [PATCH] btrfs: fix re-dirty process of tree-log nodes
From: David Sterba <hidden>
Date: 2021-11-29 12:21:56
From: David Sterba <hidden>
Date: 2021-11-29 12:21:56
On Mon, Nov 29, 2021 at 11:49:30AM +0900, Naohiro Aota wrote:
For zoned btrfs, we re-dirty a freeing tree node to ensure btrfs write the region and not to leave a write hole on a zoned device. Current code failed to re-dirty a node when the tree-log tree's depth >= 2. This leads to a transaction abort with -EAGAIN. Fix the issue by properly re-dirty a node on walking up the tree. Link: https://github.com/kdave/btrfs-progs/issues/415
Can you please add more information from the issue that's relevant to the problem? Eg. the stacktraces, reproducer etc.