Re: [PATCH 06/10] mm/mremap: check remap conditions earlier

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

 



On 7/7/25 07:27, Lorenzo Stoakes wrote:
> When we expand or move a VMA, this requires a number of additional checks
> to be performed.
> 
> Make it really obvious under what circumstances these checks must be
> performed and aggregate all the checks in one place by invoking this in
> check_prep_vma().
> 
> We have to adjust the checks to account for shrink + move operations by
> checking new_len <= old_len rather than new_len == old_len.
> 
> No functional change intended.
> 
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>

Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux