f2fs: add a sysfs entry to control max_discards
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 12 Nov 2013 06:00:38 +0000 (15:00 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:00 +0000 (10:18 +0900)
commit7ac8c3b051ed3a3e71df72a7ffc44e14cc5c2bae
tree8a4f45d41c50b2f21b5bd2991ea879016c6d0fbc
parentb29555505d81e496fdbd125190c8043f3c09a83c
f2fs: add a sysfs entry to control max_discards

If frequent small discards are issued to the device, the performance would
be degraded significantly.
So, this patch adds a sysfs entry to control the number of discards to be
issued during a checkpoint procedure.

By default, f2fs does not issue any small discards, which means max_discards
is zero.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/super.c