On 15/04/2024 15:21, Amit Daniel Kachhap wrote:
+#define reserv_vma_reserv_info(vma) \ +({ \
- struct reserv_struct __tmp = {0}; \
- test_bit(MMF_PCUABI_RESERV, &vma->vm_mm->flags) \
? vma->reserv_data : __tmp; \
reserv_data is always zero-initialised, so I think we can return vma->reserv_data unconditionally. Besides calls to this function are always guarded by reserv_is_supported().
Kevin
+})