Re: [PATCH v8 1/1] plainmount: Support plain encryption mode

2023-01-14 Thread Maxim Fomin
--- Original Message --- On Tuesday, January 10th, 2023 at 6:19 PM, Glenn Washburn wrote: > > On Wed, 28 Dec 2022 18:05:11 + > Maxim Fomin ma...@fomin.one wrote: > > > --- Original Message --- > > On Saturday, December 24th, 2022 at 2:09 AM, Glenn Washburn > > developm...@effi

Re: [PATCH v3 1/2] mm: Adjust new region size to take management overhead into account

2023-01-14 Thread Zhang Boyang
Hi, On 2023/1/12 21:52, Daniel Kiper wrote: On Thu, Dec 22, 2022 at 05:18:23PM +0800, Zhang Boyang wrote: When grub_memalign() encounters out-of-memory, it will try grub_mm_add_region_fn() to request more memory from system firmware. However, the size passed to it doesn't take region management

[PATCH] f2fs: fix off-by-one error in nat journal entries check

2023-01-14 Thread Daniel Axtens
Oops. You're allowed to have up to n = NAT_JOURNAL_ENTRIES entries _inclusive_, because the loop below uses i < n, not i <= n. D'oh. Fixes: 4bd9877f6216 ("fs/f2fs: Do not read past the end of nat journal entries") Reported-by: программист нект Tested-by: программист нект Signed-off-by: Daniel Ax

[PATCH v4 0/2] mm: Better handling of adding new regions

2023-01-14 Thread Zhang Boyang
Hi, This is the V4 patchset. V3 is at: https://lists.gnu.org/archive/html/grub-devel/2022-12/msg00271.html V2 is at: https://lists.gnu.org/archive/html/grub-devel/2022-12/msg00164.html V1 is at: https://lists.gnu.org/archive/html/grub-devel/2022-11/msg00147.html For changes in V3->V4, please s

[PATCH v4 2/2] mm: Preallocate some space when adding new regions

2023-01-14 Thread Zhang Boyang
When grub_memalign() encounters out-of-memory, it will try grub_mm_add_region_fn() to request more memory from system firmware. However, it doesn't preallocate memory space for future allocation requests. In extreme cases, it requires one call to grub_mm_add_region_fn() for each memory allocation r

[PATCH v4 1/2] mm: Adjust new region size to take management overhead into account

2023-01-14 Thread Zhang Boyang
When grub_memalign() encounters out-of-memory, it will try grub_mm_add_region_fn() to request more memory from system firmware. However, the size passed to it doesn't take region management overhead into account. Adding a memory area of "size" bytes may result in a heap region of less than "size" b