1. 22 Jul, 2016 1 commit
    • Yunlei He's avatar
      f2fs: get victim segment again after new cp · fe94793e
      Yunlei He authored
      Previous selected segment may become free after write_checkpoint,
      if we do garbage collect on this segment, and then new_curseg happen
      to reuse it, it may cause f2fs_bug_on as below.
      
      	panic+0x154/0x29c
      	do_garbage_collect+0x15c/0xaf4
      	f2fs_gc+0x2dc/0x444
      	f2fs_balance_fs.part.22+0xcc/0x14c
      	f2fs_balance_fs+0x28/0x34
      	f2fs_map_blocks+0x5ec/0x790
      	f2fs_preallocate_blocks+0xe0/0x100
      	f2fs_file_write_iter+0x64/0x11c
      	new_sync_write+0xac/0x11c
      	vfs_write+0x144/0x1e4
      	SyS_write+0x60/0xc0
      
      Here, maybe we check sit and ssa type during reset_curseg. So, we check
      segment is stale or not, and select a new victim to avoid this.
      Signed-off-by: default avatarYunlei He <heyunlei@huawei.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      fe94793e
  2. 20 Jul, 2016 4 commits
  3. 18 Jul, 2016 1 commit
  4. 15 Jul, 2016 7 commits
  5. 08 Jul, 2016 15 commits
  6. 06 Jul, 2016 6 commits
  7. 15 Jun, 2016 1 commit
  8. 13 Jun, 2016 2 commits
    • Jaegeuk Kim's avatar
      f2fs: fix deadlock in add_link failure · c92737ce
      Jaegeuk Kim authored
      mkdir                        sync_dirty_inode
       - init_inode_metadata
         - lock_page(node)
         - make_empty_dir
                                   - filemap_fdatawrite()
                                    - do_writepages
                                    - lock_page(data)
                                    - write_page(data)
                                     - lock_page(node)
         - f2fs_init_acl
          - error
         - truncate_inode_pages
          - lock_page(data)
      
      So, we don't need to truncate data pages in this error case, which will
      be done by f2fs_evict_inode.
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      c92737ce
    • Jaegeuk Kim's avatar
      f2fs: introduce mode=lfs mount option · 36abef4e
      Jaegeuk Kim authored
      This mount option is to enable original log-structured filesystem forcefully.
      So, there should be no random writes for main area.
      
      Especially, this supports host-managed SMR device.
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      36abef4e
  9. 08 Jun, 2016 3 commits