]> www.infradead.org Git - linux.git/commit
f2fs: use new ioprio Macro to get ckpt thread ioprio level
authorZhiguo Niu <zhiguo.niu@unisoc.com>
Mon, 3 Jun 2024 11:35:26 +0000 (19:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 12 Jun 2024 15:46:03 +0000 (15:46 +0000)
commit270b09313b4e16cdfd01d8371023a1661dd1112e
tree3dbb9ab232bdfef0cbe8f2d0c6444129f2f6a1b9
parent192b8fb8d1c8ca3c87366ebbef599fa80bb626b8
f2fs: use new ioprio Macro to get ckpt thread ioprio level

IOPRIO_PRIO_DATA in the new kernel version includes level and hint,
So Macro IOPRIO_PRIO_LEVEL is more accurate to get ckpt thread
ioprio data/level, and it is also consisten with the way setting
ckpt thread ioprio by IOPRIO_PRIO_VALUE(class, data/level).

Besides, change variable name from "data" to "level" for more readable.

Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/sysfs.c