From: Anand Jain <anand.jain@oracle.com>
To: David Sterba <dsterba@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 0/2] Block size helper cleanups
Date: Thu, 18 Jan 2024 14:16:11 +0800 [thread overview]
Message-ID: <99eb80c4-4434-4d97-87b8-c4f4e7c3c5cd@oracle.com> (raw)
In-Reply-To: <cover.1705511340.git.dsterba@suse.com>
Sorry for the late comments. Looks good
Reviewed-by: Anand Jain <anand.jain@oracle.com>
just one nit:
You may also bring the following repetitive code into a new
helper function as it is used once in init_mount_fs_info()
and again in open_ctree():
sb->s_blocksize = sectorsize;
sb->s_blocksize_bits = blksize_bits(sectorsize);
For example:
static inline void btrfs_set_blocksize(struct super_block *sb,
int sectorsize)
{
sb->s_blocksize = sectorsize;
sb->s_blocksize_bits = blksize_bits(sectorsize);
}
btrfs_set_blocksize(sb, sectorsize);
On 1/18/24 01:10, David Sterba wrote:
> Unify using fs_info::sectorsize for inode or superblock.
>
> David Sterba (2):
> btrfs: replace sb::s_blocksize by fs_info::sectorsize
> btrfs: replace i_blocksize by fs_info::sectorsize
>
> fs/btrfs/disk-io.c | 2 ++
> fs/btrfs/extent_io.c | 4 ++--
> fs/btrfs/file.c | 4 ++--
> fs/btrfs/inode.c | 2 +-
> fs/btrfs/ioctl.c | 2 +-
> fs/btrfs/reflink.c | 6 +++---
> fs/btrfs/send.c | 2 +-
> fs/btrfs/super.c | 2 +-
> 8 files changed, 13 insertions(+), 11 deletions(-)
next prev parent reply other threads:[~2024-01-18 6:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 17:10 [PATCH 0/2] Block size helper cleanups David Sterba
2024-01-17 17:10 ` [PATCH 1/2] btrfs: replace sb::s_blocksize by fs_info::sectorsize David Sterba
2024-01-17 17:10 ` [PATCH 2/2] btrfs: replace i_blocksize " David Sterba
2024-01-17 18:53 ` [PATCH 0/2] Block size helper cleanups Josef Bacik
2024-01-18 6:16 ` Anand Jain [this message]
2024-01-18 22:29 ` David Sterba
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=99eb80c4-4434-4d97-87b8-c4f4e7c3c5cd@oracle.com \
--to=anand.jain@oracle.com \
--cc=dsterba@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