mbox series

[v2,0/3] give ocfs2 the ability to reclaim suballocator free bg

Message ID 20240729080454.12771-1-heming.zhao@suse.com (mailing list archive)
Headers show
Series give ocfs2 the ability to reclaim suballocator free bg | expand

Message

heming.zhao@suse.com July 29, 2024, 8:04 a.m. UTC
The v2 3 patch files had been tested by ocfs2-test and xfstest generic test.

v2:

Create 2 new patches:
- ocfs2: detect released suballocator bg for fh_to_[dentry|parent]
- ocfs2: adjust spinlock_t ip_lock protection scope

In ocfs2_read_hint_group_descriptor()
- bypass the validation of GD when the BH is already managed by jbd2.

In _ocfs2_free_suballoc_bits()
- Move up the position of the vars 'idx' & 'rec'.
- Move up the position of the ocfs2_journal_dirty.
- Use le[16|32]_to_cpu() to access cl/fe/rec vars.
- Add error handling for calling ocfs2_extend_trans().
- adjust spin_lock ->ip_lock protection scope.
- Follow Glass's review comments, add 'comment' & 'else-break' for the
  'for-loop'.

v1:

Only create patch:
- ocfs2: give ocfs2 the ability to reclaim suballoc free bg

------------------------

Heming Zhao (3):
  ocfs2: give ocfs2 the ability to reclaim suballoc free bg
  ocfs2: detect released suballocator bg for fh_to_[dentry|parent]
  ocfs2: adjust spinlock_t ip_lock protection scope

 fs/ocfs2/dlmglue.c  |   3 +-
 fs/ocfs2/inode.c    |   5 +-
 fs/ocfs2/resize.c   |   4 +-
 fs/ocfs2/suballoc.c | 240 +++++++++++++++++++++++++++++++++++++++++---
 4 files changed, 232 insertions(+), 20 deletions(-)