summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorJin Xu <jinuxstyle@gmail.com>2013-09-13 08:38:54 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-09-24 17:45:48 +0900
commita57e564d14d9d123b2dd4ff1c933da0d900e0b1d (patch)
tree25f62feee1d8f343690b3af20f0f91dcb10d2489 /fs/f2fs/segment.h
parente76eebee70948060d80b5f9edd2d97062049df53 (diff)
downloadtalos-op-linux-a57e564d14d9d123b2dd4ff1c933da0d900e0b1d.tar.gz
talos-op-linux-a57e564d14d9d123b2dd4ff1c933da0d900e0b1d.zip
f2fs: optimize the victim searching loop slightly
Since the MAX_VICTIM_SEARCH has been enlarged from 20 to 4096, the victim searching overhead will be increased much than before, especially for SSR that searches victim for use quiet often. This patch intends to reduce the overhead a little bit by: - make the get_gc_cost a inline routine to reduce function call overhead - reduce multiplication and division operations - reduce unnecessary comparison operation Signed-off-by: Jin Xu <jinuxstyle@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/segment.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud