mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-28 06:23:42 -04:00
mm/rmap: elide unnecessary static inline's in interval_tree.c
It's not necessary to declare these functions static inline as they are contained within a single compilation unit. This makes the anonymous interval tree code consistent with the newly updated file-backed interval tree code. No functional change intended. Link: https://lore.kernel.org/20260710-b4-pre-scalable-cow-v2-7-2a5aa403d977@kernel.org Signed-off-by: Lorenzo Stoakes <ljs@kernel.org> Reviewed-by: Pedro Falcato <pfalcato@suse.de> Reviewed-by: Gregory Price <gourry@gourry.net> Reviewed-by: Vlastimil Babka (SUSE) <vbabka@kernel.org> Reviewed-by: Zi Yan <ziy@nvidia.com> Cc: Ackerley Tng <ackerleytng@google.com> Cc: David Hildenbrand (Arm) <david@kernel.org> Cc: Kai Huang <kai.huang@intel.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: SJ Park <sj@kernel.org> Cc: Thomas Zimmermann <tzimmermann@suse.de> Cc: Liam R. Howlett (Oracle) <liam@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
7a67b96af0
commit
5ec02309d7
@@ -81,19 +81,19 @@ vma_interval_tree_iter_next(struct vm_area_struct *vma,
|
||||
|
||||
/* Anonymous interval tree (anon_vma->rb_root) */
|
||||
|
||||
static inline unsigned long avc_start_pgoff(struct anon_vma_chain *avc)
|
||||
static unsigned long avc_start_pgoff(struct anon_vma_chain *avc)
|
||||
{
|
||||
return vma_start_pgoff(avc->vma);
|
||||
}
|
||||
|
||||
static inline unsigned long avc_last_pgoff(struct anon_vma_chain *avc)
|
||||
static unsigned long avc_last_pgoff(struct anon_vma_chain *avc)
|
||||
{
|
||||
return vma_last_pgoff(avc->vma);
|
||||
}
|
||||
|
||||
INTERVAL_TREE_DEFINE(struct anon_vma_chain, rb, unsigned long, rb_subtree_last,
|
||||
avc_start_pgoff, avc_last_pgoff,
|
||||
static inline, __anon_vma_interval_tree)
|
||||
static, __anon_vma_interval_tree)
|
||||
|
||||
void anon_vma_interval_tree_insert(struct anon_vma_chain *node,
|
||||
struct rb_root_cached *root)
|
||||
|
||||
Reference in New Issue
Block a user