f2fs: issue more large discard command
authorChangman Lee <cm224.lee@samsung.com>
Mon, 11 Nov 2013 00:24:37 +0000 (09:24 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 11 Nov 2013 00:36:32 +0000 (09:36 +0900)
commit29e59c14ae5c21d25db1580d9651b5855d656a30
tree28464aff2be40ae89b1b37c221529a8a23cbff09
parent1d15bd2034c9b0f9ac88fa0e4cd33e0d792b0bb0
f2fs: issue more large discard command

o Changes from v1
  Use find_next(_zero)_bit suggested by jg.kim

When f2fs issues discard command, if segment is contiguous,
let's issue more large segment to gather adjacent segments.

** blktrace **
179,1    0     5859    42.619023770   971  C   D 131072 + 2097152 [0]
179,1    0    33665   108.840475468   971  C   D 2228224 + 2494464 [0]
179,1    0    33671   109.131616427   971  C   D 14909440 + 344064 [0]
179,1    0    33677   109.137100677   971  C   D 15261696 + 4096 [0]

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/segment.c