]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
f2fs: add parameter op_flag in f2fs_submit_page_read()
authorJia Yang <jiayang5@huawei.com>
Wed, 1 Jul 2020 02:27:40 +0000 (10:27 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 8 Jul 2020 04:51:48 +0000 (21:51 -0700)
commitb7973091f0b205260fa819f85298f0ae1297cf84
treeb40508451d8bc02ab87f5993d98e31cf8cc8755a
parent901d745f8e6a61a835b12314d8b8a41df7012596
f2fs: add parameter op_flag in f2fs_submit_page_read()

The parameter op_flag is not used in f2fs_get_read_data_page(),
but it is used in f2fs_grab_read_bio(). Obviously, op_flag is
not passed to f2fs_grab_read_bio() successfully. We need to add
parameter in f2fs_submit_page_read() to pass it.

The case:
- gc_data_segment
 - f2fs_get_read_data_page(.., op_flag = REQ_RAHEAD,..)
  - f2fs_submit_page_read
   - f2fs_grab_read_bio(.., op_flag = 0, ..)

Signed-off-by: Jia Yang <jiayang5@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c