Skip to content

Commit

Permalink
Adding changes to avoid unnecessary transform operations in prefetch …
Browse files Browse the repository at this point in the history
…algorithm

This change is needed as extra transform operations are getting
performed on data read from Disk to L1ARC through prefetch algoirhtm.
These operations are not required when ARC is in compressed state and
data is read with ZIO through prefetch algorithm.

Signed-off-by: Jaydeep Kshirsagar <[email protected]>
  • Loading branch information
JkshirsagarMaxlinear committed Jan 30, 2025
1 parent 12f0baf commit f270858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6031,6 +6031,7 @@ arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp,
acb->acb_compressed = compressed_read;
acb->acb_encrypted = encrypted_read;
acb->acb_noauth = noauth_read;
acb->acb_nobuf = no_buf;
acb->acb_zb = *zb;

ASSERT3P(hdr->b_l1hdr.b_acb, ==, NULL);
Expand Down

0 comments on commit f270858

Please sign in to comment.