]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
inline three small functions
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Sat, 30 Nov 2024 04:02:41 +0000 (23:02 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 4 Dec 2024 20:36:52 +0000 (15:36 -0500)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c

index 7613c0b8e8426cb23e310dd05dc20c8ec5127b41..bbffa58f8c2cedff2b727b02a8ad0a1272efac97 100644 (file)
@@ -1363,7 +1363,7 @@ static inline void mas_free(struct ma_state *mas, struct maple_enode *used)
  * @count: The number of nodes needed
  * @gfp: the gfp flags
  */
-static void mas_node_count_gfp(struct ma_state *mas, int count, gfp_t gfp)
+static inline void mas_node_count_gfp(struct ma_state *mas, int count, gfp_t gfp)
 {
        unsigned long allocated = mas_allocated(mas);
 
@@ -3490,7 +3490,7 @@ finalise_leaf:
        }
 }
 
-static inline unsigned char mas_wr_new_end(struct ma_wr_state *wr_mas)
+static __always_inline unsigned char mas_wr_new_end(struct ma_wr_state *wr_mas)
 {
        struct ma_state *mas = wr_mas->mas;
        unsigned char new_end = mas->end + 2;
@@ -4073,7 +4073,7 @@ static inline void mas_store_root(struct ma_state *mas, void *entry)
  *
  * Return: True if this is a spanning write, false otherwise.
  */
-static inline bool mas_is_span_wr(struct ma_wr_state *wr_mas)
+static __always_inline bool mas_is_span_wr(struct ma_wr_state *wr_mas)
 {
        unsigned long max = wr_mas->r_max;
        unsigned long last = wr_mas->mas->last;