commit | 96436e4fab88a4c4070577ae37e56bb1b66f5438 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Jan 29 10:18:54 2024 -0800 |
committer | Darrick J. Wong <djwong@kernel.org> | Sun Mar 24 13:19:11 2024 -0700 |
tree | 84b8182766b571fb919ea7ac7844ae7200d1dc8c | |
parent | dc0acc6554df97c6739881eb8afe7bd38da74f14 [diff] |
xfs: move setting bt_logical_sectorsize out of xfs_setsize_buftarg bt_logical_sectorsize and the associated mask is set based on the constant logical block size in the block_device structure and thus doesn't need to be updated in xfs_setsize_buftarg. Move it into xfs_alloc_buftarg so that it is only done once per buftarg. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>