Re: [PATCH v2 2/3] dm array: fix unreleased btree blocks on closing a faulty array cursor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 5, 2024 at 7:42 PM Ming-Hung Tsai <mtsai@xxxxxxxxxx> wrote:
>
> The cached block pointer in dm_array_cursor might be NULL if it reaches
> an unreadable array block, or the array is empty. Therefore,
> dm_array_cursor_end() should call dm_btree_cursor_end() unconditionally,
> to prevent leaving unreleased btree blocks.
>

The patch can be verified using the "array_cursor/iterate/empty" test
in dm-unit:

dm-unit run /pdata/array_cursor/iterate/empty --kernel-dir <KERNEL_DIR>






[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux