]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm: fix lockdep issues in writeback handling
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 26 Aug 2025 13:09:48 +0000 (15:09 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 5 Sep 2025 07:11:28 +0000 (09:11 +0200)
commitebbe7d7bb1eae4db32554562f0e228824ab1f135
tree96072864b92e6fd2097938b0b261514b79a20d33
parent3f29d59e92a96d843c2ff10ebfed92ac26878658
mm: fix lockdep issues in writeback handling

Commit 2841808f35ee ("mm: remove BDI_CAP_WRITEBACK_ACCT") removed
BDI_CAP_WRITEBACK_ACCT flag and refactored code that depend on it.
Unfortunately it also moved some variable intialization out of guarded
scope in writeback handling, what triggers a true lockdep warning. Fix
this by moving initialization to the proper place.

Fixes: 2841808f35ee ("mm: remove BDI_CAP_WRITEBACK_ACCT")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
mm/page-writeback.c