Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a54c65c authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

ANDROID: f2fs: fix wrong android tracepoint



f2fs_submit_page_bio is called from in-place-write case.
Let's not assume read path only.

Fixes: 8a007427 ("ANDROID: f2fs: Complement "android_fs" tracepoint of read path")
Change-Id: I9bb8b7833d57c4342b318da52e4353f70acc3eb0
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@google.com>
parent 0f653d9a
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -513,7 +513,10 @@ int f2fs_submit_page_bio(struct f2fs_io_info *fio)
	inc_page_count(fio->sbi, is_read_io(fio->op) ?
	inc_page_count(fio->sbi, is_read_io(fio->op) ?
			__read_io_type(page): WB_DATA_TYPE(fio->page));
			__read_io_type(page): WB_DATA_TYPE(fio->page));


	if (is_read_io(fio->op))
		__f2fs_submit_read_bio(fio->sbi, bio, fio->type);
		__f2fs_submit_read_bio(fio->sbi, bio, fio->type);
	else
		__submit_bio(fio->sbi, bio, fio->type);
	return 0;
	return 0;
}
}