]> Git Repo - J-linux.git/blobdiff - lib/sbitmap.c
Merge tag 'rtw-next-2024-10-10' of https://github.com/pkshih/rtw
[J-linux.git] / lib / sbitmap.c
index 5e2e93307f0d05f94ee9bde92144ded6f6c733d0..d3412984170c03dc6600bbe53f130404b765ac5a 100644 (file)
@@ -65,7 +65,7 @@ static inline bool sbitmap_deferred_clear(struct sbitmap_word *map,
 {
        unsigned long mask, word_mask;
 
-       guard(spinlock_irqsave)(&map->swap_lock);
+       guard(raw_spinlock_irqsave)(&map->swap_lock);
 
        if (!map->cleared) {
                if (depth == 0)
@@ -136,7 +136,7 @@ int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
        }
 
        for (i = 0; i < sb->map_nr; i++)
-               spin_lock_init(&sb->map[i].swap_lock);
+               raw_spin_lock_init(&sb->map[i].swap_lock);
 
        return 0;
 }
This page took 0.030958 seconds and 4 git commands to generate.