Docs/admin-guide/mm/damon/usage: fix wrong usage example of init_regions file
authorSeongJae Park <sj@kernel.org>
Mon, 24 Oct 2022 17:46:19 +0000 (17:46 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:58:41 +0000 (15:58 -0800)
commit1b0166387586cae69d7da783f0a4521864534aad
treeb7f5a5cb7e76aa4ce21bb62b547f624c6cccbbcb
parentbd4149290c3edc09454a8a7e7ef3a5544cb9eed6
Docs/admin-guide/mm/damon/usage: fix wrong usage example of init_regions file

DAMON debugfs interface assumes the users will write all inputs at once.
However, redirecting a string of multiple lines sometimes end up writing
line by line.  Therefore, the example usage of 'init_regions' file, which
writes input as a string of multiple lines can fail.  Fix it to use a
single line string instead.  Also update the description of the usage to
not assume users will write inputs in multiple lines.

Link: https://lkml.kernel.org/r/20221024174619.15600-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Vinicius Petrucci <vpetrucci@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/mm/damon/usage.rst