All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] btrfs: some updates to btrfs_mark_buffer_dirty()
@ 2023-09-12 12:04 fdmanana
  2023-09-12 12:04 ` [PATCH 1/3] btrfs: abort transaction on generation mismatch when marking eb as dirty fdmanana
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fdmanana @ 2023-09-12 12:04 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-13 13:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-12 12:04 [PATCH 0/3] btrfs: some updates to btrfs_mark_buffer_dirty() fdmanana
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

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.