Skip to content

Commit 79b0df3

Browse files
committed
Add missed DMU_PROJECTUSED_OBJECT prefetch.
It seems 9c5167d "Project Quota on ZFS" missed to add prefetch for DMU_PROJECTUSED_OBJECT during scan (scrub/resilver). It should not cause visible problems, but may affect scub/resilver performance. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes openzfs#15024
1 parent f3fe402 commit 79b0df3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

module/zfs/dsl_scan.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,11 @@ dsl_scan_prefetch_cb(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *bp,
20152015
zb->zb_objset, DMU_META_DNODE_OBJECT);
20162016

20172017
if (OBJSET_BUF_HAS_USERUSED(buf)) {
2018+
if (OBJSET_BUF_HAS_PROJECTUSED(buf)) {
2019+
dsl_scan_prefetch_dnode(scn,
2020+
&osp->os_projectused_dnode, zb->zb_objset,
2021+
DMU_PROJECTUSED_OBJECT);
2022+
}
20182023
dsl_scan_prefetch_dnode(scn,
20192024
&osp->os_groupused_dnode, zb->zb_objset,
20202025
DMU_GROUPUSED_OBJECT);

0 commit comments

Comments
 (0)