linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] Sectorsize, csum_size lifted to fs_info
@ 2020-10-29 14:27 David Sterba
  2020-10-29 14:27 ` [PATCH 01/10] btrfs: use precalculated sectorsize_bits from fs_info David Sterba
                   ` (10 more replies)
  0 siblings, 11 replies; 32+ messages in thread
From: David Sterba @ 2020-10-29 14:27 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

Clean up usage of multiplication or division by sectorsize by shifts,
checksums per leaf are calculated once and csum_size has a copy in
fs_info so we don't have to read it from raw superblocks.

David Sterba (10):
  btrfs: use precalculated sectorsize_bits from fs_info
  btrfs: replace div_u64 by shift in free_space_bitmap_size
  btrfs: replace s_blocksize_bits with fs_info::sectorsize_bits
  btrfs: store precalculated csum_size in fs_info
  btrfs: precalculate checksums per leaf once
  btrfs: use cached value of fs_info::csum_size everywhere
  btrfs: switch cached fs_info::csum_size from u16 to u32
  btrfs: remove unnecessary local variables for checksum size
  btrfs: check integrity: remove local copy of csum_size
  btrfs: scrub: remove local copy of csum_size from context

 fs/btrfs/btrfs_inode.h     |  3 +-
 fs/btrfs/check-integrity.c |  6 +---
 fs/btrfs/compression.c     |  9 ++----
 fs/btrfs/ctree.h           |  5 +++-
 fs/btrfs/disk-io.c         | 11 ++++---
 fs/btrfs/extent-tree.c     | 11 ++-----
 fs/btrfs/extent_io.c       |  4 +--
 fs/btrfs/file-item.c       | 60 ++++++++++++++++++--------------------
 fs/btrfs/file.c            |  3 +-
 fs/btrfs/free-space-tree.c | 30 +++++++++----------
 fs/btrfs/inode.c           | 13 ++++-----
 fs/btrfs/ordered-data.c    | 11 ++++---
 fs/btrfs/ordered-data.h    |  3 +-
 fs/btrfs/scrub.c           | 31 ++++++++++----------
 fs/btrfs/super.c           |  2 +-
 fs/btrfs/tree-checker.c    |  5 ++--
 16 files changed, 95 insertions(+), 112 deletions(-)

-- 
2.25.0


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

end of thread, other threads:[~2020-11-03  9:33 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29 14:27 [PATCH 00/10] Sectorsize, csum_size lifted to fs_info David Sterba
2020-10-29 14:27 ` [PATCH 01/10] btrfs: use precalculated sectorsize_bits from fs_info David Sterba
2020-11-02 14:05   ` Qu Wenruo
2020-11-02 14:18     ` Qu Wenruo
2020-11-02 14:31       ` Johannes Thumshirn
2020-11-02 15:08         ` David Sterba
2020-11-02 15:12           ` Johannes Thumshirn
2020-11-02 15:15     ` David Sterba
2020-11-03  9:31   ` David Sterba
2020-10-29 14:27 ` [PATCH 02/10] btrfs: replace div_u64 by shift in free_space_bitmap_size David Sterba
2020-11-02 14:07   ` Qu Wenruo
2020-10-29 14:27 ` [PATCH 03/10] btrfs: replace s_blocksize_bits with fs_info::sectorsize_bits David Sterba
2020-11-02 14:23   ` Qu Wenruo
2020-11-02 15:18     ` David Sterba
2020-10-29 14:27 ` [PATCH 04/10] btrfs: store precalculated csum_size in fs_info David Sterba
2020-10-29 14:27 ` [PATCH 05/10] btrfs: precalculate checksums per leaf once David Sterba
2020-11-02 14:27   ` Qu Wenruo
2020-11-02 15:24     ` David Sterba
2020-11-02 16:00       ` David Sterba
2020-10-29 14:27 ` [PATCH 06/10] btrfs: use cached value of fs_info::csum_size everywhere David Sterba
2020-11-02 14:28   ` Qu Wenruo
2020-10-29 14:27 ` [PATCH 07/10] btrfs: switch cached fs_info::csum_size from u16 to u32 David Sterba
2020-10-29 14:27 ` [PATCH 08/10] btrfs: remove unnecessary local variables for checksum size David Sterba
2020-10-29 14:43   ` Johannes Thumshirn
2020-10-29 14:27 ` [PATCH 09/10] btrfs: check integrity: remove local copy of csum_size David Sterba
2020-10-29 14:44   ` Johannes Thumshirn
2020-10-29 14:27 ` [PATCH 10/10] btrfs: scrub: remove local copy of csum_size from context David Sterba
2020-10-29 14:45   ` Johannes Thumshirn
2020-10-29 14:54     ` David Sterba
2020-10-29 15:01       ` Johannes Thumshirn
2020-10-29 14:50 ` [PATCH 00/10] Sectorsize, csum_size lifted to fs_info Johannes Thumshirn
2020-10-29 16:25   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).