[PATCHSET v1.1 0/7] xfs: refactor rt extent unit conversions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

This series replaces all the open-coded integer division and
multiplication conversions between rt blocks and rt extents with calls
to static inline helpers.  Having cleaned all that up, the helpers are
augmented to skip the expensive operations in favor of bit shifts and
masking if the rt extent size is a power of two.

v1.1: various cleanups suggested by hch

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

With a bit of luck, this should all go splendidly.
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=refactor-rt-unit-conversions-6.7
---
 fs/xfs/libxfs/xfs_bmap.c       |   20 +++---
 fs/xfs/libxfs/xfs_rtbitmap.c   |    4 +
 fs/xfs/libxfs/xfs_rtbitmap.h   |  125 ++++++++++++++++++++++++++++++++++++++++
 fs/xfs/libxfs/xfs_sb.c         |    2 +
 fs/xfs/libxfs/xfs_trans_resv.c |    3 +
 fs/xfs/scrub/inode.c           |    3 +
 fs/xfs/scrub/rtbitmap.c        |   18 ++----
 fs/xfs/scrub/rtsummary.c       |    4 +
 fs/xfs/xfs_bmap_util.c         |   38 +++++-------
 fs/xfs/xfs_fsmap.c             |   13 ++--
 fs/xfs/xfs_inode_item.c        |    3 +
 fs/xfs/xfs_ioctl.c             |    5 +-
 fs/xfs/xfs_linux.h             |   12 ++++
 fs/xfs/xfs_mount.h             |    2 +
 fs/xfs/xfs_rtalloc.c           |    4 +
 fs/xfs/xfs_super.c             |    3 +
 fs/xfs/xfs_trans.c             |    7 ++
 17 files changed, 200 insertions(+), 66 deletions(-)




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux