diff options
author | Chenxi Mao <chenxi.mao2013@gmail.com> | 2015-05-30 14:56:46 (GMT) |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-06-01 23:21:32 (GMT) |
commit | 96c6dd59bf1d8b30afd3681550b321f4183e1914 (patch) | |
tree | 9237316bd1136839edceec4f253b31b5ed171dae /fs/f2fs/segment.c | |
parent | 4683ff837c2d000212f72ce72cab22f061e5a77c (diff) | |
download | linux-96c6dd59bf1d8b30afd3681550b321f4183e1914.tar.xz |
f2fs: disable the discard option when device doesn't support
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: Chenxi Mao <chenxi.mao2013@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
0 files changed, 0 insertions, 0 deletions