1. 14 Nov, 2017 3 commits
  2. 11 Nov, 2017 1 commit
  3. 10 Nov, 2017 1 commit
  4. 09 Nov, 2017 4 commits
  5. 07 Nov, 2017 2 commits
  6. 06 Nov, 2017 26 commits
  7. 26 Oct, 2017 3 commits
    • Colin Ian King's avatar
      f2fs: remove several redundant assignments · dca6951f
      Colin Ian King authored
      There are several assignments to variables that are redundant
      as the values are never read when the variables are updated later
      and so the redundant statements can be safely removed.
      
      Cleans up clang warnings:
      fs/f2fs/segment.c:923:19: warning: Value stored to 'p' during its initialization is never read
      fs/f2fs/segment.c:2060:2: warning: Value stored to 'hint' is never read
      fs/f2fs/segment.c:2353:2: warning: Value stored to 'start_block' is never read
      fs/f2fs/segment.c:2354:2: warning: Value stored to 'end_block' is never read
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      dca6951f
    • Arnd Bergmann's avatar
      f2fs: avoid using timespec · 6bccfa19
      Arnd Bergmann authored
      All uses of timespec are deprecated, and this one is not particularly
      useful, as the documented method for converting seconds to jiffies
      is to multiply by 'HZ'.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      6bccfa19
    • Chao Yu's avatar
      f2fs: fix to correct no_fggc_candidate · 7e515b31
      Chao Yu authored
      There may be extreme case as below:
      
      For one section contains one segment, and there are total 100 segments
      with 10% over-privision ratio in f2fs partition, fggc_threshold will
      be rounded down to 460 instead of 460.8 as below caclulation:
      
      sbi->fggc_threshold = div_u64((u64)(main_count - ovp_count) *
      			BLKS_PER_SEC(sbi), (main_count - resv_count));
      
      If section usage is as:
      60 segments which contain 460 valid blocks
      40 segments which contain 462 valid blocks
      
      As valid block number in all sections is large than fggc_threshold, so
      none of them will be chosen as candidate due to incorrect fggc_threshold.
      
      Let's just soften the term of choosing foreground GC candidates.
      Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      7e515b31