]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r290191 (by avg):
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Nov 2015 09:52:36 +0000 (09:52 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Nov 2015 09:52:36 +0000 (09:52 +0000)
commit96a1a27b8db9f19e4b883e3d4c3f9d69b7a57640
treeff653775ca71802c7356c935ccc8f62ba377694c
parent8cd461ef7ef5f3493bb04f32f26ec8bbcd66a902
MFC r290191 (by avg):
l2arc: do not call trim_map_free() for blocks with zero b_asize

b_asize can be zero if the block is compressed into an empty block
(ZIO_COMPRESS_EMPTY) and the trim code asserts that meaningless
zero-sized trimming is not attempted.
The logic for calling trim_map_free() is extracted into a new function
l2arc_trim() to minimize code duplication.

PR:             203473
Reported by:    Willem Jan Withagen <wjw@digiware.nl>
Tested by:      Willem Jan Withagen <wjw@digiware.nl>

git-svn-id: svn://svn.freebsd.org/base/stable/10@290766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c