Skip to content

xfs: introduce the free inode btree

Brian Foster linux-xfs 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 posting 2/220 patches 2 repliesIn review
  2. v3 posting 2/220 patches 15 repliesSuperseded
  3. v5 Latest11 patches 9 repliesIn review
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v4 posting 1/211 patches0 repliesSuperseded
v3 posting 1/211 patches22 repliesSuperseded
v2 posting 2/220 patches0 repliesSuperseded
v2 posting 1/211 patches9 repliesSuperseded
v112 patches0 repliesSuperseded

Changes in v5 from the cover letter

- Rebase to latest for-next.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11xfs: refactor xfs_ialloc_btree.c to support multiple inobt numbersfs/xfs/xfs_ialloc.c fs/xfs/xfs_ialloc_btree.c fs/xfs/xfs_ialloc_btree.h +1 more+15 -100 replies
2/11xfs: reserve v5 superblock read-only compat. feature bit for finobtfs/xfs/xfs_sb.h+7 -00 replies
3/11xfs: support the XFS_BTNUM_FINOBT free inode btree typefs/xfs/xfs_ag.h fs/xfs/xfs_btree.c fs/xfs/xfs_btree.h +7 more+153 -272 replies
4/11xfs: update inode allocation/free transaction reservations for finobtfs/xfs/xfs_inode.c fs/xfs/xfs_trans_resv.c fs/xfs/xfs_trans_space.h+80 -52 replies
5/11xfs: insert newly allocated inode chunks into the finobtfs/xfs/xfs_ialloc.c+70 -230 replies
6/11xfs: use and update the finobt on inode allocationfs/xfs/xfs_ialloc.c+290 -51 reply
7/11xfs: refactor xfs_difree() inobt bits into xfs_difree_inobt() helperfs/xfs/xfs_ialloc.c+96 -650 replies
8/11xfs: update the finobt on inode freefs/xfs/xfs_ialloc.c+102 -01 reply
9/11xfs: add finobt support to growfsfs/xfs/xfs_fsops.c+32 -00 replies
10/11xfs: report finobt status in fs geometryfs/xfs/xfs_fs.h fs/xfs/xfs_fsops.c+4 -10 replies
11/11xfs: enable the finobt feature on v5 superblocksfs/xfs/xfs_sb.h+2 -10 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchDave ChinnerChristoph Hellwig
1/11R-b R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 00/11] xfs: introduce the free inode btree

Hi all,

This is a minor rebase of the finobt series on the latest for-next branch. The previous version (v4) is here:

http://oss.sgi.com/archives/xfs/2014-02/msg00763.html

The most recent series with review feedback is v3:

http://oss.sgi.com/archives/xfs/2014-02/msg00121.html

Brian

v5:
- Rebase to latest for-next.
v4:
- Fixed up comments associated with separation of the AGI into separate logging regions.
- Added warning on ENOSPC failure of ifree reservation and comment describing reasoning for ifree being reserve-enabled.
- Removed finobt res. from xfs_calc_create_resv_alloc() (v4 sb only).
- Updated xfs_calc_finobt_res() to account for free space btrees and enable for inode alloc. record modification scenario.
- Renamed xfs_dialloc_ag_slow() to xfs_dialloc_ag_inobt().
- Refactored the inode allocation algorithm into several smaller helper functions.
- Fixed up comments in xfs_difree_finobt().
v3:
- Rebased to latest master.
- Fixed up unused variable warning in xfs_difree_inobt().
- Replaced a few more typedefs.
v2:
- Rebase to latest xfs tree (minor shifting around of some header bits).
- Added "xfs: report finobt status in fs geometry" patch to series. v1:
- Separate patch to enable rw finobt support at end of series.
- Rework xfs_ialloc_log_agi() to log the agi in two distinct regions.
- Rework xfs_ialloc_btree.c changes to use separate finobt handlers where appropriate.
- Fix bug to show fibt2 stats data in stat proc file.
- Move finobt log reservation calculations into separate helper, made conditional and merged to a single patch.
- Use reserved block pool in xfs_inactive() codepath instead of flush.
- Moved and cleaned up xfs_inobt_insert() to use inobt helpers.
- Enhanced lookup algorithm for allocation (xfs_dialloc_ag()).
- Refactored xfs_difree() to use xfs_difree_inobt() and xfs_difree_finobt(), cleaned up the latter.

Brian Foster (11):
xfs: refactor xfs_ialloc_btree.c to support multiple inobt numbers
xfs: reserve v5 superblock read-only compat. feature bit for finobt
xfs: support the XFS_BTNUM_FINOBT free inode btree type
xfs: update inode allocation/free transaction reservations for finobt
xfs: insert newly allocated inode chunks into the finobt
xfs: use and update the finobt on inode allocation
xfs: refactor xfs_difree() inobt bits into xfs_difree_inobt() helper
xfs: update the finobt on inode free
xfs: add finobt support to growfs
xfs: report finobt status in fs geometry
xfs: enable the finobt feature on v5 superblocks

 fs/xfs/xfs_ag.h           |  36 ++-
 fs/xfs/xfs_btree.c        |   6 +-
 fs/xfs/xfs_btree.h        |   3 +
 fs/xfs/xfs_format.h       |  14 +-
 fs/xfs/xfs_fs.h           |   1 +
 fs/xfs/xfs_fsops.c        |  36 ++-
 fs/xfs/xfs_ialloc.c       | 695 +++++++++++++++++++++++++++++++++++++++-------
 fs/xfs/xfs_ialloc_btree.c |  68 ++++-
 fs/xfs/xfs_ialloc_btree.h |   3 +-
 fs/xfs/xfs_inode.c        |  25 +-
 fs/xfs/xfs_itable.c       |   6 +-
 fs/xfs/xfs_log_recover.c  |   2 +
 fs/xfs/xfs_sb.h           |  10 +-
 fs/xfs/xfs_stats.c        |   1 +
 fs/xfs/xfs_stats.h        |  18 +-
 fs/xfs/xfs_trans_resv.c   |  53 +++-
 fs/xfs/xfs_trans_space.h  |   7 +-
 fs/xfs/xfs_types.h        |   2 +-
 18 files changed, 850 insertions(+), 136 deletions(-)
Signature · 6 lines
1.8.3.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs