Searched refs:max_discard_size (Results 1 – 4 of 4) sorted by relevance
3724 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_no_bitmap() local3769 if (max_discard_size && in trim_no_bitmap()3770 bytes >= (max_discard_size + in trim_no_bitmap()3772 bytes = max_discard_size; in trim_no_bitmap()3773 extent_bytes = max_discard_size; in trim_no_bitmap()3774 entry->offset += max_discard_size; in trim_no_bitmap()3775 entry->bytes -= max_discard_size; in trim_no_bitmap()3888 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_bitmaps() local3972 max_discard_size && in trim_bitmaps()3973 bytes > (max_discard_size + minlen)) in trim_bitmaps()[all …]
587 READ_ONCE(fs_info->discard_ctl.max_discard_size)); in btrfs_discard_max_discard_size_show()596 u64 max_discard_size; in btrfs_discard_max_discard_size_store() local599 ret = kstrtou64(buf, 10, &max_discard_size); in btrfs_discard_max_discard_size_store()603 WRITE_ONCE(discard_ctl->max_discard_size, max_discard_size); in btrfs_discard_max_discard_size_store()607 BTRFS_ATTR_RW(discard, max_discard_size, btrfs_discard_max_discard_size_show,623 BTRFS_ATTR_PTR(discard, max_discard_size),
763 discard_ctl->max_discard_size = BTRFS_ASYNC_DISCARD_DEFAULT_MAX_SIZE; in btrfs_discard_init()
372 u64 max_discard_size; member