haiku/headers/private/kernel/util
David Sebek bd02d81c24 Fix trim-related issues
Fixes:
* Use uint64 instead of off_t when handling offset and size
  of the trimmed range in the fs_trim_data structure
* BlockAllocator::Trim: Correct the size of a buffer
* ram_disk, mmc: Do not trim past device capacity

Improvements:
* BlockAllocator::Trim: Because the received offset and size
  are ignored by BFS (the functionality is not implemented yet),
  return B_UNSUPPORTED if the range does not cover the whole
  partition
* ram_disk, mmc: More accurate calculation of the number
  of trimmed bytes
* devfs: Add a uint64 version of translate_partition_access()

Change-Id: I24f4c08674f123ad33a5fef6e28996a4ada6ff0d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4155
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-07-16 18:35:34 +00:00
..
atomic.h
AutoLock.h Added some support for GCC 5+. 2015-07-20 21:45:02 +02:00
AVLTree.h AVLTree: Add convenience LeftMost/RightMost with no arguments. 2020-05-30 01:47:40 +00:00
AVLTreeBase.h AVLTree: Add convenience LeftMost/RightMost with no arguments. 2020-05-30 01:47:40 +00:00
AVLTreeMap.h
Bitmap.h
BitUtils.h Clean up various whitespace and fix one header guard. 2015-08-02 23:19:07 +02:00
Constructor.h Clean up various whitespace and fix one header guard. 2015-08-02 23:19:07 +02:00
DoublyLinkedList.h
DoublyLinkedQueue.h
FixedWidthPointer.h
fs_trim_support.h Fix trim-related issues 2021-07-16 18:35:34 +00:00
Heap.h
kernel_c.h
kernel_cpp.h kernel_cpp: Dynamic exception specifications were deprecated in C++11. 2020-03-15 17:47:09 -04:00
KernelReferenceable.h
KernelUtilsOrder.h Relicense all of Ingo's BSD/MIT+advertising clause'd code as plain MIT. 2019-08-30 18:27:35 -04:00
KMessage.h
kqueue.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
list.h
MallocFreeAllocator.h Clean up various whitespace and fix one header guard. 2015-08-02 23:19:07 +02:00
MinMaxHeap.h
MultiHashTable.h
OpenHashTable.h BOpenHashTable: We need std::nothrow, so don't depend on others to include it. 2019-02-13 10:29:24 +00:00
queue.h
RadixBitmap.h
Random.h
ring_buffer.h
SinglyLinkedList.h
SplayTree.h Clean up various whitespace and fix one header guard. 2015-08-02 23:19:07 +02:00
Stack.h
StringHash.h
syscall_args.h syscall_args: Remove R5 compatibility hack. 2019-02-17 13:06:49 -05:00
TypeOperation.h
Vector.h Relicense all of Ingo's BSD/MIT+advertising clause'd code as plain MIT. 2019-08-30 18:27:35 -04:00
VectorMap.h Relicense all of Ingo's BSD/MIT+advertising clause'd code as plain MIT. 2019-08-30 18:27:35 -04:00
VectorSet.h Relicense all of Ingo's BSD/MIT+advertising clause'd code as plain MIT. 2019-08-30 18:27:35 -04:00