1. 28 2月, 2017 1 次提交
  2. 24 2月, 2017 5 次提交
  3. 23 2月, 2017 4 次提交
  4. 29 1月, 2017 3 次提交
  5. 12 12月, 2016 1 次提交
  6. 30 11月, 2016 1 次提交
  7. 26 11月, 2016 6 次提交
  8. 24 11月, 2016 6 次提交
  9. 14 11月, 2016 2 次提交
  10. 03 11月, 2016 1 次提交
  11. 01 11月, 2016 1 次提交
  12. 12 10月, 2016 1 次提交
  13. 01 10月, 2016 3 次提交
    • C
      f2fs: don't submit irrelevant page · 6ca56ca4
      Chao Yu 提交于
      While we call ->writepages, there are two cases:
      a. we didn't writeout any dirty pages, since they are writebacked by other
      thread concurrently.
      b. we writeout dirty pages, and have already submitted bio to block layer.
      
      In these cases, we don't need to do additional bio flushing unnecessarily,
      it may split bio in cache into smaller one.
      Signed-off-by: NChao Yu <yuchao0@huawei.com>
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      6ca56ca4
    • C
      f2fs: support configuring fault injection per superblock · 1ecc0c5c
      Chao Yu 提交于
      Previously, we only support global fault injection configuration, so that
      when we configure type/rate of fault injection through sysfs, mount
      option, it will influence all f2fs partition which is being used.
      
      It is not make sence, since it will be not convenient if developer want
      to test separated partitions with different fault injection rate/type
      simultaneously, also it's not possible to enable fault injection in one
      partition and disable fault injection in other one.
      
      >From now on, we move global configuration of fault injection in module
      into per-superblock, hence injection testing can be more flexible.
      Signed-off-by: NChao Yu <yuchao0@huawei.com>
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      1ecc0c5c
    • W
      f2fs: add customized migrate_page callback · 5b7a487c
      Weichao Guo 提交于
      This patch improves the migration of dirty pages and allows migrating atomic
      written pages that F2FS uses in Page Cache. Instead of the fallback releasing
      page path, it provides better performance for memory compaction, CMA and other
      users of memory page migrating. For dirty pages, there is no need to write back
      first when migrating. For an atomic written page before committing, we can
      migrate the page and update the related 'inmem_pages' list at the same time.
      Signed-off-by: NWeichao Guo <guoweichao@huawei.com>
      Reviewed-by: NChao Yu <yuchao0@huawei.com>
      [Jaegeuk Kim: fix some coding style]
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      5b7a487c
  14. 23 9月, 2016 2 次提交
  15. 14 9月, 2016 1 次提交
    • J
      f2fs: fix to set PageUptodate in f2fs_write_end correctly · 649d7df2
      Jaegeuk Kim 提交于
      Previously, f2fs_write_begin sets PageUptodate all the time. But, when user
      tries to update the entire page (i.e., len == PAGE_SIZE), we need to consider
      that the page is able to be copied partially afterwards. In such the case,
      we will lose the remaing region in the page.
      
      This patch fixes this by setting PageUptodate in f2fs_write_end as given copied
      result. In the short copy case, it returns zero to let generic_perform_write
      retry copying user data again.
      
      As a result, f2fs_write_end() works:
         PageUptodate      len      copied    return   retry
      1. no                4096     4096      4096     false  -> return 4096
      2. no                4096     1024      0        true   -> goto #1 case
      3. yes               2048     2048      2048     false  -> return 2048
      4. yes               2048     1024      1024     false  -> return 1024
      Suggested-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      649d7df2
  16. 13 9月, 2016 1 次提交
  17. 08 9月, 2016 1 次提交