linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] mm: Remove unused vma_init_lock()
@ 2023-06-10 10:19 YueHaibing
  2023-06-12  9:14 ` David Hildenbrand
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2023-06-10 10:19 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, YueHaibing

commit c7f8f31c00d1 ("mm: separate vma->lock from vm_area_struct")
left this behind.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 include/linux/mm.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 0db09639dd2d..1970772c07bb 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -725,7 +725,6 @@ struct vm_area_struct *lock_vma_under_rcu(struct mm_struct *mm,
 
 #else /* CONFIG_PER_VMA_LOCK */
 
-static inline void vma_init_lock(struct vm_area_struct *vma) {}
 static inline bool vma_start_read(struct vm_area_struct *vma)
 		{ return false; }
 static inline void vma_end_read(struct vm_area_struct *vma) {}
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] mm: Remove unused vma_init_lock()
  2023-06-10 10:19 [PATCH -next] mm: Remove unused vma_init_lock() YueHaibing
@ 2023-06-12  9:14 ` David Hildenbrand
  0 siblings, 0 replies; 2+ messages in thread
From: David Hildenbrand @ 2023-06-12  9:14 UTC (permalink / raw)
  To: YueHaibing, akpm; +Cc: linux-mm, linux-kernel

On 10.06.23 12:19, YueHaibing wrote:
> commit c7f8f31c00d1 ("mm: separate vma->lock from vm_area_struct")
> left this behind.
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>   include/linux/mm.h | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/include/linux/mm.h b/include/linux/mm.h
> index 0db09639dd2d..1970772c07bb 100644
> --- a/include/linux/mm.h
> +++ b/include/linux/mm.h
> @@ -725,7 +725,6 @@ struct vm_area_struct *lock_vma_under_rcu(struct mm_struct *mm,
>   
>   #else /* CONFIG_PER_VMA_LOCK */
>   
> -static inline void vma_init_lock(struct vm_area_struct *vma) {}
>   static inline bool vma_start_read(struct vm_area_struct *vma)
>   		{ return false; }
>   static inline void vma_end_read(struct vm_area_struct *vma) {}

Reviewed-by: David Hildenbrand <david@redhat.com>

-- 
Cheers,

David / dhildenb


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-12  9:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-10 10:19 [PATCH -next] mm: Remove unused vma_init_lock() YueHaibing
2023-06-12  9:14 ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).