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>
Tue, 22 Jan 2019 23:31:26 +0000 (15:31 -0800)
commit2010987365ab3b381df20bb6f175b59551cfe67d
treeb5e3ab1c1ca114a46e9e9e0486a7713eb278062f
parentf9aa52a8cbe09fe25244d59c29660bbe635df613
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