OSDN Git Service

f2fs: fix to set sbi dirty correctly
authorChao Yu <yuchao0@huawei.com>
Thu, 10 Jan 2019 08:40:12 +0000 (16:40 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 4 Feb 2019 18:33:57 +0000 (10:33 -0800)
commitc90a357aee5f155d94f46ab0b109388b72fac2ce
tree7775e4edb01d7dc1a4d5a7bc51e6a33621e55dc1
parent1b64f91923d05f3fd2b3dfe18c0b0159377d0745
f2fs: fix to set sbi dirty correctly

In order to record direct IO count, we add two additional type in
enum count_type: F2FS_DIO_{WRITE,READ}, but those IO won't dirty
filesystem metadata, so we don't need to set filesystem dirty in
inc_page_count(), fix it.

Fixes: 02b16d0a34a1 ("f2fs: add to account direct IO")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h