public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/4] btrfs-progs: rename "sector size" to "block size"
Date: Mon, 16 Dec 2024 15:21:03 +1030	[thread overview]
Message-ID: <cover.1734324435.git.wqu@suse.com> (raw)

Since day 1 of btrfs, we use the name "sector size" to indicate the
minimum data unit size (from btrfs_super_block::sectorsize).

But all other file systems use "block size" to indicate the minimum data
unit size, and inside kernel, a sector is used to describe the minimal
IO block size for a block device.
Furthermore kernel sector size is fixed to 512, and different block
devices have different sector sizes, from the older 512 sector sized
HDDs, to modern day flash devices that are even pushing for 16K sector
size.

This has brought quite some confusiong when we need to co-operate with
other fs/mm people.

I believe it's time to do the migration for btrfs-progs first, then do
it inside the kernel, before we're pushing for iomap support.

Qu Wenruo (4):
  btrfs-progs: convert btrfs_fs_info::sectorsize to blocksize
  btrfs-progs: mkfs: add "--blocksize" option as an alias for
    "--sectorsize"
  btrfs-progs: docs: change the terminology from "sectorsize" to
    "blocksize"
  btrfs-progs: rename btrfs_super_block::sectorsize to blocksize

 Documentation/Status.rst             |  8 +--
 Documentation/Subpage.rst            | 11 ++--
 Documentation/btrfs-convert.rst      |  4 +-
 Documentation/btrfs-man5.rst         |  4 +-
 Documentation/ch-balance-filters.rst |  4 +-
 Documentation/ch-mount-options.rst   |  6 +-
 Documentation/ch-sysfs.rst           |  2 +-
 Documentation/mkfs.btrfs.rst         | 20 ++++--
 btrfs-corrupt-block.c                | 24 +++----
 check/main.c                         | 44 ++++++-------
 check/mode-common.c                  | 18 ++---
 check/mode-lowmem.c                  | 24 +++----
 check/repair.c                       |  4 +-
 cmds/inspect-dump-tree.c             |  8 +--
 cmds/rescue-chunk-recover.c          | 24 +++----
 cmds/restore.c                       |  6 +-
 common/clear-cache.c                 |  2 +-
 common/fsfeatures.c                  | 52 +++++++--------
 common/fsfeatures.h                  |  4 +-
 convert/common.c                     | 16 ++---
 convert/main.c                       | 24 +++----
 convert/source-ext2.c                | 18 ++---
 convert/source-fs.c                  | 16 ++---
 convert/source-reiserfs.c            | 12 ++--
 image/image-restore.c                |  8 +--
 kernel-shared/accessors.h            |  4 +-
 kernel-shared/ctree.h                |  5 +-
 kernel-shared/disk-io.c              | 28 ++++----
 kernel-shared/disk-io.h              |  2 +-
 kernel-shared/extent-tree.c          | 10 +--
 kernel-shared/file-item.c            | 18 ++---
 kernel-shared/file-item.h            |  4 +-
 kernel-shared/file.c                 | 18 ++---
 kernel-shared/free-space-cache.c     | 40 ++++++------
 kernel-shared/free-space-cache.h     |  4 +-
 kernel-shared/free-space-tree.c      | 28 ++++----
 kernel-shared/print-tree.c           | 12 ++--
 kernel-shared/tree-checker.c         | 98 ++++++++++++++--------------
 kernel-shared/uapi/btrfs_tree.h      |  4 +-
 kernel-shared/volumes.c              | 20 +++---
 mkfs/common.c                        | 22 +++----
 mkfs/common.h                        |  2 +-
 mkfs/main.c                          | 43 ++++++------
 mkfs/rootdir.c                       | 78 +++++++++++-----------
 tune/change-csum.c                   | 26 ++++----
 45 files changed, 419 insertions(+), 410 deletions(-)

--
2.47.1


             reply	other threads:[~2024-12-16  4:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-16  4:51 Qu Wenruo [this message]
2024-12-16  4:51 ` [PATCH 1/4] btrfs-progs: convert btrfs_fs_info::sectorsize to blocksize Qu Wenruo
2024-12-16  4:51 ` [PATCH 2/4] btrfs-progs: mkfs: add "--blocksize" option as an alias for "--sectorsize" Qu Wenruo
2024-12-16  4:51 ` [PATCH 3/4] btrfs-progs: docs: change the terminology from "sectorsize" to "blocksize" Qu Wenruo
2024-12-16  4:51 ` [PATCH 4/4] btrfs-progs: rename btrfs_super_block::sectorsize to blocksize Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1734324435.git.wqu@suse.com \
    --to=wqu@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox