Home
last modified time | relevance | path

Searched refs:max_discard_size (Results 1 – 4 of 4) sorted by relevance

/fs/btrfs/
Dsysfs.c479 READ_ONCE(fs_info->discard_ctl.max_discard_size)); in btrfs_discard_max_discard_size_show()
488 u64 max_discard_size; in btrfs_discard_max_discard_size_store() local
491 ret = kstrtou64(buf, 10, &max_discard_size); in btrfs_discard_max_discard_size_store()
495 WRITE_ONCE(discard_ctl->max_discard_size, max_discard_size); in btrfs_discard_max_discard_size_store()
499 BTRFS_ATTR_RW(discard, max_discard_size, btrfs_discard_max_discard_size_show,
510 BTRFS_ATTR_PTR(discard, max_discard_size),
Dfree-space-cache.c3465 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_no_bitmap() local
3510 if (max_discard_size && in trim_no_bitmap()
3511 bytes >= (max_discard_size + in trim_no_bitmap()
3513 bytes = max_discard_size; in trim_no_bitmap()
3514 extent_bytes = max_discard_size; in trim_no_bitmap()
3515 entry->offset += max_discard_size; in trim_no_bitmap()
3516 entry->bytes -= max_discard_size; in trim_no_bitmap()
3629 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_bitmaps() local
3713 max_discard_size && in trim_bitmaps()
3714 bytes > (max_discard_size + minlen)) in trim_bitmaps()
[all …]
Ddiscard.c695 discard_ctl->max_discard_size = BTRFS_ASYNC_DISCARD_DEFAULT_MAX_SIZE; in btrfs_discard_init()
Dctree.h474 u64 max_discard_size; member