Searched refs:max_discard_size (Results 1 – 4 of 4) sorted by relevance
479 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() local491 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),
3465 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_no_bitmap() local3510 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() local3713 max_discard_size && in trim_bitmaps()3714 bytes > (max_discard_size + minlen)) in trim_bitmaps()[all …]
695 discard_ctl->max_discard_size = BTRFS_ASYNC_DISCARD_DEFAULT_MAX_SIZE; in btrfs_discard_init()
474 u64 max_discard_size; member