1. 07 Apr, 2014 3 commits
    • Chao Yu's avatar
      f2fs: fix wrong statistics of inline data · 48b230a5
      Chao Yu authored
      If we remove a file that has inline data after mount, our statistics turns to
      inaccurate.
      
      cat /sys/kernel/debug/f2fs/status
        - Inline_data Inode: 4294967295
      
      Let's add stat_inc_inline_inode() to stat inline info of the file when lookup.
      
      Change log from v1:
       o stat in f2fs_lookup() instead of in do_read_inode() for excluding wrong stat.
      Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
      48b230a5
    • ZhangZhen's avatar
      f2fs: check the acl's validity before setting · 3a8861e2
      ZhangZhen authored
      Before setting the acl, call posix_acl_valid() to check if it is
      valid or not.
      Signed-off-by: default avatarzhangzhen <zhenzhang.zhang@huawei.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
      3a8861e2
    • Jaegeuk Kim's avatar
      f2fs: introduce f2fs_issue_flush to avoid redundant flush issue · 6b4afdd7
      Jaegeuk Kim authored
      Some storage devices show relatively high latencies to complete cache_flush
      commands, even though their normal IO speed is prettry much high. In such
      the case, it needs to merge cache_flush commands as much as possible to avoid
      issuing them redundantly.
      So, this patch introduces a mount option, "-o flush_merge", to mitigate such
      the overhead.
      
      If this option is enabled by user, F2FS merges the cache_flush commands and then
      issues just one cache_flush on behalf of them. Once the single command is
      finished, F2FS sends a completion signal to all the pending threads.
      
      Note that, this option can be used under a workload consisting of very intensive
      concurrent fsync calls, while the storage handles cache_flush commands slowly.
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
      6b4afdd7
  2. 02 Apr, 2014 4 commits
  3. 01 Apr, 2014 3 commits
  4. 20 Mar, 2014 9 commits
  5. 18 Mar, 2014 8 commits
  6. 12 Mar, 2014 2 commits
  7. 11 Mar, 2014 1 commit
  8. 10 Mar, 2014 4 commits
  9. 05 Mar, 2014 1 commit
  10. 03 Mar, 2014 1 commit
  11. 28 Feb, 2014 1 commit
    • Chao Yu's avatar
      f2fs: fix dirty page accounting when redirty · 9cf3c389
      Chao Yu authored
      We should de-account dirty counters for page when redirty in ->writepage().
      
      Wu Fengguang described in 'commit 971767ca':
      "writeback: fix dirtied pages accounting on redirty
      De-account the accumulative dirty counters on page redirty.
      
      Page redirties (very common in ext4) will introduce mismatch between
      counters (a) and (b)
      
      a) NR_DIRTIED, BDI_DIRTIED, tsk->nr_dirtied
      b) NR_WRITTEN, BDI_WRITTEN
      
      This will introduce systematic errors in balanced_rate and result in
      dirty page position errors (ie. the dirty pages are no longer balanced
      around the global/bdi setpoints)."
      Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
      9cf3c389
  12. 27 Feb, 2014 3 commits