Searched refs:max_discard_size (Results 1 – 4 of 4) sorted by relevance
3700 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_no_bitmap() local3745 if (max_discard_size && in trim_no_bitmap()3746 bytes >= (max_discard_size + in trim_no_bitmap()3748 bytes = max_discard_size; in trim_no_bitmap()3749 extent_bytes = max_discard_size; in trim_no_bitmap()3750 entry->offset += max_discard_size; in trim_no_bitmap()3751 entry->bytes -= max_discard_size; in trim_no_bitmap()3864 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_bitmaps() local3948 max_discard_size && in trim_bitmaps()3949 bytes > (max_discard_size + minlen)) in trim_bitmaps()[all …]
562 READ_ONCE(fs_info->discard_ctl.max_discard_size)); in btrfs_discard_max_discard_size_show()571 u64 max_discard_size; in btrfs_discard_max_discard_size_store() local574 ret = kstrtou64(buf, 10, &max_discard_size); in btrfs_discard_max_discard_size_store()578 WRITE_ONCE(discard_ctl->max_discard_size, max_discard_size); in btrfs_discard_max_discard_size_store()582 BTRFS_ATTR_RW(discard, max_discard_size, btrfs_discard_max_discard_size_show,598 BTRFS_ATTR_PTR(discard, max_discard_size),
709 discard_ctl->max_discard_size = BTRFS_ASYNC_DISCARD_DEFAULT_MAX_SIZE; in btrfs_discard_init()
528 u64 max_discard_size; member