]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit959970d2360a2212f07a274720f7db2c7dfdf088
tree8a4f45d41c50b2f21b5bd2991ea879016c6d0fbc
parentafdcb252ead17e86ef45a7ecaec7da8d5c87db42
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