mm-delete-mmap_write_trylock-and-vma_try_start_write.patch removed from -mm tree
The quilt patch titled
Subject: mm: delete mmap_write_trylock() and vma_try_start_write()
has been removed from the -mm tree. Its filename was
mm-delete-mmap_write_trylock-and-vma_try_start_write.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Hugh Dickins <[email protected]>
Subject: mm: delete mmap_write_trylock() and vma_try_start_write()
Date: Tue, 11 Jul 2023 21:48:48 -0700 (PDT)
mmap_write_trylock() and vma_try_start_write() were added just for khugepaged, but now it has no use for them: delete.
Signed-off-by Hugh Dickins <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Aneesh Kumar K.V <[email protected]>
Cc Anshuman Khandual <[email protected]>
Cc Axel Rasmussen <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Claudio Imbrenda <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Gerald Schaefer <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Huang, Ying <[email protected]>
Cc Ira Weiny <[email protected]>
Cc Jann Horn <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Miaohe Lin <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Mike Kravetz <[email protected]>
Cc Mike Rapoport (IBM) <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Naoya Horiguchi <[email protected]>
Cc Pavel Tatashin <[email protected]>
Cc Peter Xu <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Qi Zheng <[email protected]>
Cc Ralph Campbell <[email protected]>
Cc Russell King <[email protected]>
Cc SeongJae Park <[email protected]>
Cc Song Liu <[email protected]>
Cc Steven Price <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Vishal Moola (Oracle) <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Will Deacon <[email protected]>
Cc Yang Shi <[email protected]>
Cc Yu Zhao <[email protected]>
Cc Zack Rusin <[email protected]>
Cc Zi Yan <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/mm.h | 17 ----------------- include/linux/mmap_lock.h | 10 ---------- 2 files changed, 27 deletions(-)
include/linux/mmap_lock.h renamed from include/linux/mmap_lock.h~mm-delete-mmap_write_trylock-and-vma_try_start_write +0 -10
@@ -118,16 +118,6 @@ static inline int mmap_write_lock_killabreturn ret; } -static inline bool mmap_write_trylock (struct mm_struct *mm) -{ -bool ret; - -__mmap_lock_trace_start_locking (mm, true); - ret =down_write_trylock (&mm->mmap_lock) !=0 ; -__mmap_lock_trace_acquire_returned (mm, true, ret); -return ret; -} -static inline void mmap_write_unlock (struct mm_struct *mm) {__mmap_lock_trace_released (mm, true);
include/linux/mm.h renamed from include/linux/mm.h~mm-delete-mmap_write_trylock-and-vma_try_start_write +0 -17
@@ -709,21 +709,6 @@ static inline void vma_start_write(strucup_write (&vma->vm_lock->lock); } -static inline bool vma_try_start_write (struct vm_area_struct *vma) -{ -int mm_lock_seq; - -if (__is_vma_write_locked (vma, &mm_lock_seq)) -return true; - -if (!down_write_trylock (&vma->vm_lock->lock)) -return false; - -WRITE_ONCE (vma->vm_lock_seq, mm_lock_seq); -up_write (&vma->vm_lock->lock); -return true; -} -static inline void vma_assert_write_locked (struct vm_area_struct *vma) {int mm_lock_seq;
@@ -748,8 +733,6 @@ static inline bool vma_start_read(struct {return false; }static inline void vma_end_read (struct vm_area_struct *vma) {}static inline void vma_start_write (struct vm_area_struct *vma) {} -static inline bool vma_try_start_write (struct vm_area_struct *vma) - {return true; }static inline void vma_assert_write_locked (struct vm_area_struct *vma) {}static inline void vma_mark_detached (struct vm_area_struct *vma,bool detached) {}
_
Patches currently in -mm which might be from [email protected] are