Home
last modified time | relevance | path

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

/linux-6.1.9/fs/btrfs/
Dfree-space-cache.c3700 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_no_bitmap() local
3745 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() local
3948 max_discard_size && in trim_bitmaps()
3949 bytes > (max_discard_size + minlen)) in trim_bitmaps()
[all …]
Dsysfs.c562 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() local
574 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),
Ddiscard.c709 discard_ctl->max_discard_size = BTRFS_ASYNC_DISCARD_DEFAULT_MAX_SIZE; in btrfs_discard_init()
Dctree.h528 u64 max_discard_size; member