All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/10 v3] xfs: refactor and tablise growfs
@ 2018-05-14  4:18 Dave Chinner
  2018-05-14  4:18 ` [PATCH 01/10] xfs: one-shot cached buffers Dave Chinner
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Dave Chinner @ 2018-05-14  4:18 UTC (permalink / raw)
  To: linux-xfs

THis is the third version of the growfs tablisation patchset,
addressing the changes that Darrick raised. I've reposted the
entire patchset because changes in early patches cascaded throw
several others and it was just easier to repost the lot.

Version 3:
- fix agno variable to use xfs_agnumber_t
- change ag header table to use expanded definitions
- dropped numrecs from tables as they are always either zero or hard
  coded by type specific block initialisers.

Version 2:
- rebase on current for-next
- add oneshot cached buffer support
- clean up more of the typedef usage.
- move id->nfree calc to per-ag hdr init function from the freespace
  btree root initialisation.
- only use id->type and id->numrecs for the generic btree root block
  init calls.
- only call xfs_growfs_data_private() if the size is actually being
  changed.
- make sure we still update secondary superblocks if physical grow
  fails with ENOSPC.
- change secondary superblock updates to use cached one-shot
  buffers.
- moved the core code to libxfs so it can be shared easily with
  userspace.

Version 1:
https://marc.info/?l=linux-xfs&m=151746732826277&w=2



^ permalink raw reply	[flat|nested] 17+ messages in thread
* [PATCH v2] xfs: refactor and tablise growfs
@ 2018-05-11 22:50 Dave Chinner
  2018-05-11 22:51 ` [PATCH 04/10] xfs: factor ag btree root block initialisation Dave Chinner
  0 siblings, 1 reply; 17+ messages in thread
From: Dave Chinner @ 2018-05-11 22:50 UTC (permalink / raw)
  To: linux-xfs

Hi folks,

This is an update of the patch set I sent a while ago, and
Eric and Darrick have been bugging me to get sorted. The last
posting was here:

https://marc.info/?l=linux-xfs&m=151746732826277&w=2

This update addresses most of the comments that were made at the
time. most importantly, it gets rid of the use of uncached buffers
for secondary superblocks. Instead, I introduced a small helper to
mark a buffer as a "one-shot" buffer, which will cause the buffer to
be reclaimed when all active references go away rather than being
put on the LRU. If teh buffer is already on the LRU, then it
respects that and does not change the buffer behaviour (similar to
XFS_IGET_DONTCACHE for inodes).  THis means the growfs code will
play nicely with scrub and other occasional users of secondary
superblocks, but not add any long term cache footprint.

The other addition since the last posting is moving all the code
that does the AG header setup to libxfs so it canbe shared with
userspace(*). Most of the functions have been moved to new files
fs/xfs/libxfs/xfs_ag.[ch], but the secondary superblock update got
moved to fs/xfs/libxfs/xfs_sb.c, because it's purely about
superblock updates.

The pastchset just passed an overnight QA run on v4 and v5
filesystems w/ both 1k and 4k block sizes.

Comments?

-Dave.

Version 2:
- rebase on current for-next
- add oneshot cached buffer support
- clean up more of the typedef usage.
- move id->nfree calc to per-ag hdr init function from the freespace
  btree root initialisation.
- only use id->type and id->numrecs for the generic btree root block
  init calls.
- only call xfs_growfs_data_private() if the size is actually being
  changed.
- make sure we still update secondary superblocks if physical grow
  fails with ENOSPC.
- change secondary superblock updates to use cached one-shot
  buffers.
- moved the core code to libxfs so it can be shared easily with
  userspace.

(*) e.g. mkfs. More interestingly, this provides a mechanism for a
simple offline grow implementation to be added to xfs_spaceman for
vm/container deployment infrastructures that have to mount an fs
image just to grow it during their setup phase.



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

end of thread, other threads:[~2018-05-14 19:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14  4:18 [PATCH 0/10 v3] xfs: refactor and tablise growfs Dave Chinner
2018-05-14  4:18 ` [PATCH 01/10] xfs: one-shot cached buffers Dave Chinner
2018-05-14  4:18 ` [PATCH 02/10] xfs: factor out AG header initialisation from growfs core Dave Chinner
2018-05-14 19:28   ` Darrick J. Wong
2018-05-14  4:18 ` [PATCH 03/10] xfs: convert growfs AG header init to use buffer lists Dave Chinner
2018-05-14  4:18 ` [PATCH 04/10] xfs: factor ag btree root block initialisation Dave Chinner
2018-05-14 19:25   ` Darrick J. Wong
2018-05-14  4:18 ` [PATCH 05/10] xfs: turn ag header initialisation into a table driven operation Dave Chinner
2018-05-14 19:27   ` Darrick J. Wong
2018-05-14  4:19 ` [PATCH 06/10] xfs: make imaxpct changes in growfs separate Dave Chinner
2018-05-14  4:19 ` [PATCH 07/10] xfs: separate secondary sb update in growfs Dave Chinner
2018-05-14  4:19 ` [PATCH 08/10] xfs: rework secondary superblock updates " Dave Chinner
2018-05-14  4:19 ` [PATCH 09/10] xfs: move growfs core to libxfs Dave Chinner
2018-05-14  4:19 ` [PATCH 10/10] xfs: factor the ag length extension code into libxfs Dave Chinner
  -- strict thread matches above, loose matches on Subject: below --
2018-05-11 22:50 [PATCH v2] xfs: refactor and tablise growfs Dave Chinner
2018-05-11 22:51 ` [PATCH 04/10] xfs: factor ag btree root block initialisation Dave Chinner
2018-05-12  0:48   ` Darrick J. Wong
2018-05-12  2:01     ` Dave Chinner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.