Skip to content

btrfs: some misc stuff around space flushing and enospc handling

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17btrfs: don't start transaction when joining with TRANS_JOIN_NOSTARTfs/btrfs/transaction.c+4 -30 replies
2/17btrfs: update comment for btrfs_join_transaction_nostart()fs/btrfs/transaction.c+4 -10 replies
3/17btrfs: print target number of bytes when dumping free spacefs/btrfs/free-space-cache.c+2 -10 replies
4/17btrfs: print block group super and delalloc bytes when dumping space infofs/btrfs/space-info.c+5 -40 replies
5/17btrfs: print available space for a block group when dumping a space infofs/btrfs/space-info.c+7 -20 replies
6/17btrfs: print available space across all block groups when dumping space infofs/btrfs/space-info.c+4 -00 replies
7/17btrfs: don't steal space from global rsv after a transaction abortfs/btrfs/space-info.c+12 -20 replies
8/17btrfs: store the error that turned the fs into error statefs/btrfs/disk-io.c fs/btrfs/fs.h fs/btrfs/messages.c+16 -80 replies
9/17btrfs: return real error when orphan cleanup fails due to a transaction abortfs/btrfs/inode.c+8 -10 replies
10/17btrfs: fail priority metadata ticket with real fs errorfs/btrfs/space-info.c+5 -50 replies
11/17btrfs: make btrfs_cleanup_fs_roots() staticfs/btrfs/disk-io.c fs/btrfs/disk-io.h+50 -510 replies
12/17btrfs: make find_free_dev_extent() staticfs/btrfs/volumes.c fs/btrfs/volumes.h+2 -40 replies
13/17btrfs: merge find_free_dev_extent() and find_free_dev_extent_start()fs/btrfs/volumes.c+7 -140 replies
14/17btrfs: avoid starting new transaction when flushing delayed items and refsfs/btrfs/space-info.c+6 -20 replies
15/17btrfs: avoid starting and committing empty transaction when flushing spacefs/btrfs/space-info.c+10 -10 replies
16/17btrfs: avoid start and commit empty transaction when starting qgroup rescanfs/btrfs/qgroup.c+8 -70 replies
17/17btrfs: avoid start and commit empty transaction when flushing qgroupsfs/btrfs/qgroup.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/17] btrfs: some misc stuff around space flushing and enospc handling

From: Filipe Manana <[email protected]>

A few fixes, improvements, cleanups around space flushing, enospc handling, debugging. These came out while debugging an image of a fs that fails to mount due to being out of unallocated space and having only about 1.6M of free metadata space, which is not enough to commit any transaction triggered during mount while doing orphan cleanup, resulting in transactions aborts either when running delayed refs or somewhere in the critical section of a transaction commit. These patches do not prevent getting into that situation, but that will be attempted by other patches in a separate patchset.

Filipe Manana (17):
btrfs: don't start transaction when joining with TRANS_JOIN_NOSTART
btrfs: update comment for btrfs_join_transaction_nostart()
btrfs: print target number of bytes when dumping free space
btrfs: print block group super and delalloc bytes when dumping space info
btrfs: print available space for a block group when dumping a space info
btrfs: print available space across all block groups when dumping space info
btrfs: don't steal space from global rsv after a transaction abort
btrfs: store the error that turned the fs into error state
btrfs: return real error when orphan cleanup fails due to a transaction abort
btrfs: fail priority metadata ticket with real fs error
btrfs: make btrfs_cleanup_fs_roots() static
btrfs: make find_free_dev_extent() static
btrfs: merge find_free_dev_extent() and find_free_dev_extent_start()
btrfs: avoid starting new transaction when flushing delayed items and refs
btrfs: avoid starting and committing empty transaction when flushing space
btrfs: avoid start and commit empty transaction when starting qgroup rescan
btrfs: avoid start and commit empty transaction when flushing qgroups

 fs/btrfs/disk-io.c          | 102 ++++++++++++++++++------------------
 fs/btrfs/disk-io.h          |   1 -
 fs/btrfs/free-space-cache.c |   3 +-
 fs/btrfs/fs.h               |  12 +++--
 fs/btrfs/inode.c            |   9 +++-
 fs/btrfs/messages.c         |  10 ++--
 fs/btrfs/qgroup.c           |  19 ++++---
 fs/btrfs/space-info.c       |  51 ++++++++++++++----
 fs/btrfs/transaction.c      |  12 +++--
 fs/btrfs/volumes.c          |  21 +++-----
 fs/btrfs/volumes.h          |   2 -
 11 files changed, 144 insertions(+), 98 deletions(-)
Signature · 1 line
2.34.1