[0/7] A few patches to improve ext4 balloc

Message ID 20230221115919.1918161-1-shikemeng@huaweicloud.com
Headers
Series A few patches to improve ext4 balloc |

Message

Kemeng Shi Feb. 21, 2023, 11:59 a.m. UTC
  Hi, this series contain patches to properly handle error in
ext4_read_block_bitmap_nowait to avoid potential data
inconsistent, correct validation check of inode table in
ext4_valid_block_bitmap and other random cleanup patches.
More details can be found in respective log.
Thanks!

Kemeng Shi (7):
  ext4: properly handle error of ext4_init_block_bitmap in
    ext4_read_block_bitmap_nowait
  ext4: correct validation check of inode table in
    ext4_valid_block_bitmap
  ext4: call ext4_bg_num_gdb_[no]meta directly in
    ext4_num_base_meta_clusters
  ext4: remove unnecessary check in ext4_bg_num_gdb_nometa
  ext4: remove stale comment in ext4_init_block_bitmap
  ext4: stop trying to verify just initialized bitmap in
    ext4_read_block_bitmap_nowait
  ext4: improve inode table blocks counting in
    ext4_num_overhead_clusters

 fs/ext4/balloc.c | 121 ++++++++++++++++++++++++-----------------------
 1 file changed, 61 insertions(+), 60 deletions(-)
  

Comments

Theodore Ts'o March 17, 2023, 1:52 a.m. UTC | #1
On Tue, 21 Feb 2023 19:59:12 +0800, Kemeng Shi wrote:
> ext4_read_block_bitmap_nowait to avoid potential data
> inconsistent, correct validation check of inode table in
> ext4_valid_block_bitmap and other random cleanup patches.
> More details can be found in respective log.
> Thanks!
> 
> Kemeng Shi (7):
>   ext4: properly handle error of ext4_init_block_bitmap in
>     ext4_read_block_bitmap_nowait
>   ext4: correct validation check of inode table in
>     ext4_valid_block_bitmap
>   ext4: call ext4_bg_num_gdb_[no]meta directly in
>     ext4_num_base_meta_clusters
>   ext4: remove unnecessary check in ext4_bg_num_gdb_nometa
>   ext4: remove stale comment in ext4_init_block_bitmap
>   ext4: stop trying to verify just initialized bitmap in
>     ext4_read_block_bitmap_nowait
>   ext4: improve inode table blocks counting in
>     ext4_num_overhead_clusters
> 
> [...]

Applied, thanks!

[1/7] ext4: properly handle error of ext4_init_block_bitmap in ext4_read_block_bitmap_nowait
      commit: 68070432da0de5e346f5f75a76f76858000c8e53
[2/7] ext4: correct validation check of inode table in ext4_valid_block_bitmap
      commit: 1d4ef2264e0f18275d8176fa3083a7988117de40
[3/7] ext4: call ext4_bg_num_gdb_[no]meta directly in ext4_num_base_meta_clusters
      commit: 8bd501d2ef66bb06765aecfd3a69a5ac3213e28f
[4/7] ext4: remove unnecessary check in ext4_bg_num_gdb_nometa
      commit: 6b8948ef40e97de05fa6329eb985c9cc1168aefa
[5/7] ext4: remove stale comment in ext4_init_block_bitmap
      commit: 35690178606526d33a8ae254660a8a2239a08d6d
[6/7] ext4: stop trying to verify just initialized bitmap in ext4_read_block_bitmap_nowait
      commit: 23a7838694dc48315b38d0cf111afaaedfc5081f
[7/7] ext4: improve inode table blocks counting in ext4_num_overhead_clusters
      commit: e3c70113e2cbeb3dadb3768964920337eff290f6

Best regards,