-
由 Chenxi Mao 提交于
Current f2fs check the whether the blk device can support discard. However, the code will cause the discard option cannot be enabled. Because the clear_opt(sbi, DISCARD) will be invoked forever. This patch can fix this issue. Jaegeuk Kim: The original patch was intended to disable the discard option when device does not support trim command. Rather than remaining the buggy patch, let's replace with this patch as an integrated one. Signed-off-by: NChenxi Mao <chenxi.mao2013@gmail.com> Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
96c6dd59