projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fcaf92
)
btrfs: zstd: assert the timer pointer in callback
author
David Sterba
<dsterba@suse.com>
Wed, 9 Oct 2024 14:30:50 +0000
(16:30 +0200)
committer
David Sterba
<dsterba@suse.com>
Mon, 11 Nov 2024 13:34:15 +0000
(14:34 +0100)
Make sure we got the right timer struct for the zstd workspace reclaim
work.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zstd.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/zstd.c
b/fs/btrfs/zstd.c
index 15f8a83165a38b83024dd4e6bd1061f3953d6e6f..5232b56d5892599c0f48f5712fd62363acefe0e6 100644
(file)
--- a/
fs/btrfs/zstd.c
+++ b/
fs/btrfs/zstd.c
@@
-111,6
+111,8
@@
static void zstd_reclaim_timer_fn(struct timer_list *timer)
unsigned long reclaim_threshold = jiffies - ZSTD_BTRFS_RECLAIM_JIFFIES;
struct list_head *pos, *next;
+ ASSERT(timer == &wsm.timer);
+
spin_lock(&wsm.lock);
if (list_empty(&wsm.lru_list)) {