All of lore.kernel.org
 help / color / mirror / Atom feed
From: fdmanana@kernel.org
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] btrfs: fix log replay not persisting a 0 i_size
Date: Tue, 17 Feb 2026 18:27:24 +0000	[thread overview]
Message-ID: <cover.1771350720.git.fdmanana@suse.com> (raw)

From: Filipe Manana <fdmanana@suse.com>

Fix an issue where if we fsync a file that got its size truncated to 0, we
may end up not getting an i_size of 0 after log replay if new names for the
file were also logged. Details in the change log of the first patch.

Filipe Manana (2):
  btrfs: fix zero size inode with non-zero size after log replay
  btrfs: pass a btrfs inode to tree-log.c:fill_inode_item()

 fs/btrfs/tree-log.c | 140 +++++++++++++++++++++++++++-----------------
 1 file changed, 85 insertions(+), 55 deletions(-)

-- 
2.47.2


             reply	other threads:[~2026-02-17 18:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-17 18:27 fdmanana [this message]
2026-02-17 18:27 ` [PATCH 1/2] btrfs: fix zero size inode with non-zero size after log replay fdmanana
2026-02-17 18:27 ` [PATCH 2/2] btrfs: pass a btrfs inode to tree-log.c:fill_inode_item() fdmanana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1771350720.git.fdmanana@suse.com \
    --to=fdmanana@kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.