mm: remove unused anon_vma_trylock_write()
Subsystems (2)
PATCH 1/1 mm: remove unused anon_vma_trylock_write()
The last user of anon_vma_trylock_write() was removed by cc22b9978509, leaving the helper unused. Remove it.
Signed-off-by Hao Li <[email protected]>
--- mm/internal.h | 5 ----- 1 file changed, 5 deletions(-)
mm/internal.h +0 -5
@@ -298,11 +298,6 @@ static inline void anon_vma_lock_write(struct anon_vma *anon_vma)down_write (&anon_vma->root->rwsem); } -static inline int anon_vma_trylock_write (struct anon_vma *anon_vma) -{ -return down_write_trylock (&anon_vma->root->rwsem); -} -static inline void anon_vma_unlock_write (struct anon_vma *anon_vma) {up_write (&anon_vma->root->rwsem);
Signature · 1 line
2.54.0
Quoted 4 lines · Hao Li
The last user of
anon_vma_trylock_write()was removed bycc22b9978509, leaving the helper unused. Remove it.Signed-off-by Hao Li <[email protected]>
LGTM so:
Reviewed-by Lorenzo Stoakes (ARM) <[email protected]>
Quoted 21 lines
--- mm/internal.h | 5 ----- 1 file changed, 5 deletions(-)mm/internal.h +0
-6@@ -298,11 +298,6 @@ static inline void anon_vma_lock_write(struct anon_vma *anon_vma)down_write (&anon_vma->root->rwsem); } -static inline int anon_vma_trylock_write (struct anon_vma *anon_vma) -{ -return down_write_trylock (&anon_vma->root->rwsem); -} -static inline void anon_vma_unlock_write (struct anon_vma *anon_vma) {up_write (&anon_vma->root->rwsem); --
Quoted 2 lines
2.54.0
--
Cheers, Lorenzo
Quoted 5 lines · Hao Li
The last user of
anon_vma_trylock_write()was removed bycc22b9978509, leaving the helper unused. Remove it.Signed-off-by Hao Li <[email protected]>---
Signature · 3 lines
Cheers, David
Quoted 2 lines · On Thu, 27 Aug 2026 15:18:06 +0800 Hao Li <[email protected]> wrote:
The last user of
anon_vma_trylock_write()was removed bycc22b9978509, leaving the helper unused. Remove it.
Nice catch.
Quoted 2 lines
Signed-off-by Hao Li <[email protected]>
Reviewed-by SJ Park <[email protected]>
Thanks,
SJ
[...]