Home
last modified time | relevance | path

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

/linux-6.12.1/fs/btrfs/
Dfree-space-cache.c3724 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_no_bitmap() local
3769 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() local
3972 max_discard_size && in trim_bitmaps()
3973 bytes > (max_discard_size + minlen)) in trim_bitmaps()
[all …]
Dsysfs.c587 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() local
599 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),
Ddiscard.c763 discard_ctl->max_discard_size = BTRFS_ASYNC_DISCARD_DEFAULT_MAX_SIZE; in btrfs_discard_init()
Dfs.h372 u64 max_discard_size; member