android_kernel_oneplus_msm8998/fs/f2fs
Chao Yu 046b4ced72 f2fs: fix to account IO correctly
Below race can cause reversed reference on dirty count, fix it by
relocating __submit_bio() and inc_page_count().

Thread A				Thread B
- f2fs_inplace_write_data
 - f2fs_submit_page_bio
  - __submit_bio
					- f2fs_write_end_io
					 - dec_page_count
  - inc_page_count

Cc: <stable@vger.kernel.org>
Fixes: d1b3e72d5490 ("f2fs: submit bio of in-place-update pages")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-Commit: 2cc5dcf7a9e074c5bdfdefea1801aa0a657750d6
Git-Repo: https://android.googlesource.com/kernel/common
Change-Id: Ifff46ef82be68fc910ea3dbcc2299a22664587d4
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2019-01-18 14:54:15 +05:30
..
acl.c f2fs: updates on 4.15-rc1 2017-11-27 13:08:17 -08:00
acl.h f2fs: backport from (4c1fad64 - Merge tag 'for-f2fs-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs) 2017-09-25 14:27:55 -07:00
checkpoint.c treewide: Use array_size() in f2fs_kzalloc() 2018-07-08 17:50:24 -07:00
data.c f2fs: fix to account IO correctly 2019-01-18 14:54:15 +05:30
debug.c f2fs: avoid stucking GC due to atomic write 2018-07-08 17:46:45 -07:00
dir.c f2fs: clean up symbol namespace 2018-07-08 17:47:36 -07:00
extent_cache.c f2fs: clean up symbol namespace 2018-07-08 17:47:36 -07:00
f2fs.h Merge remote-tracking branch 'origin/upstream-f2fs-stable-linux-4.4.y' into android-4.4 2018-07-30 17:25:04 -07:00
file.c treewide: Use array_size in f2fs_kvzalloc() 2018-07-08 17:50:26 -07:00
gc.c f2fs: let sync node IO interrupt async one 2018-07-08 17:49:45 -07:00
gc.h f2fs: introduce sbi->gc_mode to determine the policy 2018-07-08 17:46:43 -07:00
hash.c f2fs: catch up to v4.14-rc1 2017-10-03 17:19:14 -07:00
inline.c Merge remote-tracking branch 'origin/upstream-f2fs-stable-linux-4.4.y' into android-4.4 2018-07-30 17:25:04 -07:00
inode.c f2fs: clean up symbol namespace 2018-07-08 17:47:36 -07:00
Kconfig f2fs: remove wrong backported codes 2017-10-03 13:35:15 +00:00
Makefile f2fs: catch up to v4.14-rc1 2017-10-03 17:19:14 -07:00
namei.c Merge android-4.4.142 (8ec9fd8) into msm-4.4 2018-08-03 16:59:20 +05:30
node.c treewide: Use array_size in f2fs_kvzalloc() 2018-07-08 17:50:26 -07:00
node.h f2fs/fscrypt: updates to v4.17-rc1 2018-04-12 09:58:05 -07:00
recovery.c f2fs: clean up symbol namespace 2018-07-08 17:47:36 -07:00
segment.c treewide: Use array_size in f2fs_kvzalloc() 2018-07-08 17:50:26 -07:00
segment.h f2fs: fix to update mtime correctly 2018-07-08 17:49:23 -07:00
shrinker.c f2fs: clean up symbol namespace 2018-07-08 17:47:36 -07:00
super.c treewide: Use array_size() in f2fs_kzalloc() 2018-07-08 17:50:24 -07:00
sysfs.c f2fs: clean up symbol namespace 2018-07-08 17:47:36 -07:00
trace.c f2fs: updates on v4.16-rc1 2018-02-22 19:19:42 +00:00
trace.h f2fs: add sbi and page pointer in f2fs_io_info 2015-05-28 15:41:32 -07:00
xattr.c f2fs: clean up symbol namespace 2018-07-08 17:47:36 -07:00
xattr.h f2fs: catch up to v4.14-rc1 2017-10-03 17:19:14 -07:00