f2fs: fix to don't trigger writeback during recovery
authorChao Yu <yuchao0@huawei.com>
Sat, 26 May 2018 10:03:34 +0000 (18:03 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 May 2018 18:31:52 +0000 (11:31 -0700)
commit64c74a7ab505ea40d1b3e5d02735ecab08ae1b14
tree82704aa77f4a38e67e54ab2661e0bfa5bd92a807
parent35a9a766a1b3d57b5f84356954c443db62311b68
f2fs: fix to don't trigger writeback during recovery

- f2fs_fill_super
 - recover_fsync_data
  - recover_data
   - del_fsync_inode
    - iput
     - iput_final
      - write_inode_now
       - f2fs_write_inode
        - f2fs_balance_fs
         - f2fs_balance_fs_bg
          - sync_dirty_inodes

With data_flush mount option, during recovery, in order to avoid entering
above writeback flow, let's detect recovery status and do skip in
f2fs_balance_fs_bg.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c