diff options
| author | Christoph Hellwig <[email protected]> | 2023-12-28 07:55:38 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-12-29 08:44:12 -0700 |
| commit | 5e7169e7f7c0989304dbe8467a1d703d614c64db (patch) | |
| tree | 67ea6c4acd129810052f358c83f867d845da2243 /fs/btrfs/dev-replace.c | |
| parent | 928a5dd3a849dc6d8298835bdcb25c360d41bccb (diff) | |
bcache: discard_granularity should not be smaller than a sector
Just like all block I/O, discards are in units of sectors. Thus setting a
smaller than sector size discard limit in case of > 512 byte sectors in
bcache doesn't make sense. Always set the discard granularity to 512
bytes instead.
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions