fs-constify-mapping-related-test-functions-for-improved-const-correctness.patch removed from -mm tree
The quilt patch titled
Subject: fs: constify mapping related test functions for improved const-correctness
has been removed from the -mm tree. Its filename was
fs-constify-mapping-related-test-functions-for-improved-const-correctness.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: Max Kellermann <[email protected]>
Subject: fs: constify mapping related test functions for improved const-correctness
Date: Mon, 1 Sep 2025 22:50:13 +0200
We select certain test functions which either invoke each other, functions that are already const-ified, or no further functions.
It is therefore relatively trivial to const-ify them, which provides a basis for further const-ification further up the call stack.
---
include/linux/fs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/fs.h renamed from include/linux/fs.h~fs-constify-mapping-related-test-functions-for-improved-const-correctness +3 -3
@@ -537,7 +537,7 @@ struct address_space {/* * Returns true if any of the pages in the mapping are marked with the tag. */ -static inline bool mapping_tagged (struct address_space *mapping,xa_mark_t tag) +static inline bool mapping_tagged (const struct address_space *mapping,xa_mark_t tag) {return xa_marked (&mapping->i_pages, tag); }
@@ -585,7 +585,7 @@ static inline void i_mmap_assert_write_l/* * Might pages of this file be mapped into userspace? */ -static inline int mapping_mapped (struct address_space *mapping) +static inline int mapping_mapped (const struct address_space *mapping) {return !RB_EMPTY_ROOT (&mapping->i_mmap.rb_root); }
@@ -599,7 +599,7 @@ static inline int mapping_mapped(struct* If i_mmap_writable is negative, no new writable mappings are allowed. You * can only deny writable mappings, if none exists right now. */ -static inline int mapping_writably_mapped (struct address_space *mapping) +static inline int mapping_writably_mapped (const struct address_space *mapping) {return atomic_read (&mapping->i_mmap_writable) >0 ; }
_
Patches currently in -mm which might be from [email protected] are