Commit 52c743f0 authored by SeongJae Park's avatar SeongJae Park Committed by Todd Kjos
Browse files

UPSTREAM: mm/damon/sysfs: move sysfs_lock to common module

DAMON sysfs interface is implemented in a single file, sysfs.c, which has
about 2,800 lines of code.  As the interface is hierarchical and some of
the code can be reused by different hierarchies, it would make more sense
to split out the implementation into common parts and different parts in
multiple files.  As the beginning of the work, create files for common
code and move the global mutex for directories modifications protection
into the new file.

Link: https://lkml.kernel.org/r/20221026225943.100429-8-sj@kernel.org


Signed-off-by: default avatarSeongJae Park <sj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>

(cherry picked from commit 39240595)

Bug: 300502883
Bug: 317310896
Change-Id: I8e0eb32f2b90a907d917f684c35f2a321d944c0e
Signed-off-by: default avatarcui yangpei <cuiyangpei@xiaomi.com>
parent 7c9a2b06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment