[PATCH 6.6 005/121] btrfs: fix race between logging inode and checking if it was logged before