Whamcloud - gitweb
LU-14729 osd-ldiskfs: declare dirty block groups correctly
authorWang Shilong <wshilong@ddn.com>
Wed, 2 Jun 2021 01:52:39 +0000 (09:52 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 21 Jul 2021 07:11:32 +0000 (07:11 +0000)
commit022a0994956fef2532a68cf3b2bda25238cd6bd1
treee70b89345bc6ff86bebc63f00c4762cc2c44ff01
parent25836ff90c55c6a22f23a166bfe5ff3465a8927c
LU-14729 osd-ldiskfs: declare dirty block groups correctly

Calculate dirty block groups only include estimated extents,
indirect blocks and extent node/leaf blocks are missed, this
could make us short of credits.

Lustre-change: https://review.whamcloud.com/43890
Lustre-commit: 42cda8781f94ad1138afac2d23180ea48f3c3450

Fixes: 0271b17b80a82 ("LU-14134 osd-ldiskfs: reduce credits for new writing")
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: Iec8525823b04e909c030f94bf75b8eca60d31c50
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44279
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c