1. 14 11月, 2017 3 次提交
  2. 11 11月, 2017 2 次提交
  3. 10 11月, 2017 4 次提交
  4. 07 11月, 2017 2 次提交
  5. 06 11月, 2017 26 次提交
  6. 26 10月, 2017 3 次提交
    • C
      f2fs: remove several redundant assignments · dca6951f
      Colin Ian King 提交于
      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: NColin Ian King <colin.king@canonical.com>
      Reviewed-by: NChao Yu <yuchao0@huawei.com>
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      dca6951f
    • A
      f2fs: avoid using timespec · 6bccfa19
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Reviewed-by: NChao Yu <yuchao0@huawei.com>
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      6bccfa19
    • C
      f2fs: fix to correct no_fggc_candidate · 7e515b31
      Chao Yu 提交于
      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: NChao Yu <yuchao0@huawei.com>
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      7e515b31
新手
引导
客服 返回
顶部