public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] btrfs: fixes around swap file activation and cleanups
@ 2024-12-11 14:53 fdmanana
  2024-12-11 14:53 ` [PATCH 01/11] btrfs: fix race with memory mapped writes when activating swap file fdmanana
                   ` (11 more replies)
  0 siblings, 12 replies; 29+ messages in thread
From: fdmanana @ 2024-12-11 14:53 UTC (permalink / raw)
  To: linux-btrfs

From: Filipe Manana <fdmanana@suse.com>

There are a couple issues with swap file activation, one being races with
memory mapped writes, while the other one is a failure due to buggy
detection of extent sharedness - we can often consider an extent as shared
when it is not but it used to be. The rest are just some cleanups or
enhancements.

Filipe Manana (11):
  btrfs: fix race with memory mapped writes when activating swap file
  btrfs: fix swap file activation failure due to extents that used to be shared
  btrfs: allow swap activation to be interruptible
  btrfs: avoid monopolizing a core when activating a swap file
  btrfs: remove no longer needed strict argument from can_nocow_extent()
  btrfs: remove the snapshot check from check_committed_ref()
  btrfs: avoid redundant call to get inline ref type at check_committed_ref()
  btrfs: simplify return logic at check_committed_ref()
  btrfs: simplify arguments for btrfs_cross_ref_exist()
  btrfs: add function comment for check_committed_ref()
  btrfs: add assertions and comment about path expectations to btrfs_cross_ref_exist()

 fs/btrfs/btrfs_inode.h |   2 +-
 fs/btrfs/direct-io.c   |   3 +-
 fs/btrfs/extent-tree.c | 127 ++++++++++++++++++++++++-----------
 fs/btrfs/extent-tree.h |   3 +-
 fs/btrfs/file.c        |   2 +-
 fs/btrfs/inode.c       | 146 +++++++++++++++++++++++++++++------------
 fs/btrfs/locking.h     |   5 ++
 7 files changed, 202 insertions(+), 86 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2024-12-13 22:37 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 14:53 [PATCH 00/11] btrfs: fixes around swap file activation and cleanups fdmanana
2024-12-11 14:53 ` [PATCH 01/11] btrfs: fix race with memory mapped writes when activating swap file fdmanana
2024-12-11 14:53 ` [PATCH 02/11] btrfs: fix swap file activation failure due to extents that used to be shared fdmanana
2024-12-11 14:53 ` [PATCH 03/11] btrfs: allow swap activation to be interruptible fdmanana
2024-12-11 14:53 ` [PATCH 04/11] btrfs: avoid monopolizing a core when activating a swap file fdmanana
2024-12-11 14:53 ` [PATCH 05/11] btrfs: remove no longer needed strict argument from can_nocow_extent() fdmanana
2024-12-11 14:53 ` [PATCH 06/11] btrfs: remove the snapshot check from check_committed_ref() fdmanana
2024-12-11 14:53 ` [PATCH 07/11] btrfs: avoid redundant call to get inline ref type at check_committed_ref() fdmanana
2024-12-11 14:53 ` [PATCH 08/11] btrfs: simplify return logic " fdmanana
2024-12-11 14:53 ` [PATCH 09/11] btrfs: simplify arguments for btrfs_cross_ref_exist() fdmanana
2024-12-11 14:53 ` [PATCH 10/11] btrfs: add function comment for check_committed_ref() fdmanana
2024-12-11 14:53 ` [PATCH 11/11] btrfs: add assertions and comment about path expectations to btrfs_cross_ref_exist() fdmanana
2024-12-11 15:04 ` [PATCH v2 00/11] btrfs: fixes around swap file activation and cleanups fdmanana
2024-12-11 15:04   ` [PATCH v2 01/11] btrfs: fix race with memory mapped writes when activating swap file fdmanana
2024-12-11 15:04   ` [PATCH v2 02/11] btrfs: fix swap file activation failure due to extents that used to be shared fdmanana
2024-12-13 20:52     ` Qu Wenruo
2024-12-13 22:36       ` Filipe Manana
2024-12-11 15:05   ` [PATCH v2 03/11] btrfs: allow swap activation to be interruptible fdmanana
2024-12-11 15:05   ` [PATCH v2 04/11] btrfs: avoid monopolizing a core when activating a swap file fdmanana
2024-12-11 15:05   ` [PATCH v2 05/11] btrfs: remove no longer needed strict argument from can_nocow_extent() fdmanana
2024-12-11 15:05   ` [PATCH v2 06/11] btrfs: remove the snapshot check from check_committed_ref() fdmanana
2024-12-11 15:05   ` [PATCH v2 07/11] btrfs: avoid redundant call to get inline ref type at check_committed_ref() fdmanana
2024-12-11 15:05   ` [PATCH v2 08/11] btrfs: simplify return logic " fdmanana
2024-12-11 15:05   ` [PATCH v2 09/11] btrfs: simplify arguments for btrfs_cross_ref_exist() fdmanana
2024-12-11 15:05   ` [PATCH v2 10/11] btrfs: add function comment for check_committed_ref() fdmanana
2024-12-11 15:05   ` [PATCH v2 11/11] btrfs: add assertions and comment about path expectations to btrfs_cross_ref_exist() fdmanana
2024-12-13 21:03     ` Qu Wenruo
2024-12-13 22:29       ` Filipe Manana
2024-12-13 21:07   ` [PATCH v2 00/11] btrfs: fixes around swap file activation and cleanups Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox