Skip to content

Enospc cleanups and fixeS

Josef Bacik linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 19 repliesIn review
  2. v18 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- addressed comments from reviewers.
- fixed a bug in patch 6 that was introduced because of changes to upstream.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8btrfs: check if free bgs for commitfs/btrfs/extent-tree.c+20 -140 replies
2/8btrfs: dump block_rsv whe dumping space infofs/btrfs/extent-tree.c+15 -00 replies
3/8btrfs: don't use global rsv for chunk allocationfs/btrfs/extent-tree.c+0 -91 reply
4/8btrfs: add ALLOC_CHUNK_FORCE to the flushing codefs/btrfs/ctree.h fs/btrfs/extent-tree.c include/trace/events/btrfs.h+20 -24 replies
5/8btrfs: don't enospc all tickets on flush failurefs/btrfs/extent-tree.c+25 -201 reply
6/8btrfs: loop in inode_rsv_refillfs/btrfs/extent-tree.c+43 -153 replies
7/8btrfs: be more explicit about allowed flush statesfs/btrfs/extent-tree.c+10 -112 replies
8/8btrfs: reserve extra space during evict()fs/btrfs/inode.c+23 -21 reply

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchOmar SandovalNikolay BorisovDavid Sterba
1/8R-b R-b
2/8R-b R-b
3/8R-b
4/8R-b
5/8R-b
6/8
7/8R-b R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH 0/8][V2] Enospc cleanups and fixeS

v1->v2:
- addressed comments from reviewers.
- fixed a bug in patch 6 that was introduced because of changes to upstream.

-- Original message --

The delayed refs rsv patches exposed a bunch of issues in our enospc infrastructure that needed to be addressed. These aren't really one coherent group, but they are all around flushing and reservations. may_commit_transaction() needed to be updated a little bit, and we needed to add a new state to force chunk allocation if things got dicey. Also because we can end up needed to reserve a whole bunch of extra space for outstanding delayed refs we needed to add the ability to only ENOSPC tickets that were too big to satisfy, instead of failing all of the tickets. There's also a fix in here for one of the corner cases where we didn't quite have enough space reserved for the delayed refs we were generating during evict(). Thanks,

Josef