All of lore.kernel.org
 help / color / mirror / Atom feed
From: fdmanana@kernel.org
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/3] btrfs: some updates to btrfs_mark_buffer_dirty()
Date: Tue, 12 Sep 2023 13:04:28 +0100	[thread overview]
Message-ID: <cover.1694519543.git.fdmanana@suse.com> (raw)

From: Filipe Manana <fdmanana@suse.com>

A few updates to btrfs_mark_buffer_dirty(), with the most important one
to not allow a transaction to commit when we know there's some corruption
due to marking an extent buffer as dirty when its generation does not
match the current transaction's generation. More details on the change
logs of each patch.

Filipe Manana (3):
  btrfs: abort transaction on generation mismatch when marking eb as dirty
  btrfs: use btrfs_crit at btrfs_mark_buffer_dirty()
  btrfs: mark transaction id check as unlikely at btrfs_mark_buffer_dirty()

 fs/btrfs/block-group.c               |   4 +-
 fs/btrfs/ctree.c                     | 109 +++++++++++++++------------
 fs/btrfs/ctree.h                     |  11 ++-
 fs/btrfs/delayed-inode.c             |   2 +-
 fs/btrfs/dev-replace.c               |   2 +-
 fs/btrfs/dir-item.c                  |   8 +-
 fs/btrfs/disk-io.c                   |  18 +++--
 fs/btrfs/disk-io.h                   |   3 +-
 fs/btrfs/extent-tree.c               |  36 +++++----
 fs/btrfs/file-item.c                 |  17 +++--
 fs/btrfs/file.c                      |  34 ++++-----
 fs/btrfs/free-space-cache.c          |   6 +-
 fs/btrfs/free-space-tree.c           |  17 +++--
 fs/btrfs/inode-item.c                |  16 ++--
 fs/btrfs/inode.c                     |  10 +--
 fs/btrfs/ioctl.c                     |   4 +-
 fs/btrfs/qgroup.c                    |  14 ++--
 fs/btrfs/relocation.c                |  10 +--
 fs/btrfs/root-tree.c                 |   4 +-
 fs/btrfs/tests/extent-buffer-tests.c |   6 +-
 fs/btrfs/tests/inode-tests.c         |  12 ++-
 fs/btrfs/tree-log.c                  |  12 +--
 fs/btrfs/uuid-tree.c                 |   6 +-
 fs/btrfs/volumes.c                   |  10 +--
 fs/btrfs/xattr.c                     |   8 +-
 25 files changed, 208 insertions(+), 171 deletions(-)

-- 
2.40.1


             reply	other threads:[~2023-09-12 12:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 12:04 fdmanana [this message]
2023-09-12 12:04 ` [PATCH 1/3] btrfs: abort transaction on generation mismatch when marking eb as dirty fdmanana
2023-09-12 12:04 ` [PATCH 2/3] btrfs: use btrfs_crit at btrfs_mark_buffer_dirty() fdmanana
2023-09-12 12:04 ` [PATCH 3/3] btrfs: mark transaction id check as unlikely " fdmanana
2023-09-13 13:45 ` [PATCH 0/3] btrfs: some updates to btrfs_mark_buffer_dirty() David Sterba

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.1694519543.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.