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 scheduler: Code refactoring 2013-12-05 22:47:30 +01:00
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 DoublyLinkedList: Add Sort() 2013-11-20 16:00:34 +01:00
DoublyLinkedQueue.h
FixedWidthPointer.h
fs_trim_support.h Fix trim-related issues 2021-07-16 18:35:34 +00:00
Heap.h scheduler: Use heap to determine highest priority thread 2013-12-29 19:24:01 +01:00
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 gcc4 build fix. 2015-01-12 19:04:33 +01:00
MallocFreeAllocator.h Clean up various whitespace and fix one header guard. 2015-08-02 23:19:07 +02:00
MinMaxHeap.h kernel/util: MinMaxHeap: Fix unused variable warnings 2013-12-29 22:47:05 +01:00
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 SinglyLinkedList: Missing include 2013-11-20 16:00:34 +01:00
SplayTree.h Clean up various whitespace and fix one header guard. 2015-08-02 23:19:07 +02:00
Stack.h
StringHash.h khash: Move string hash functions to own header/source file 2013-11-19 15:08:34 +01:00
syscall_args.h syscall_args: Remove R5 compatibility hack. 2019-02-17 13:06:49 -05:00
TypeOperation.h Revert 6f68e52 and fix the gcc2 build via template. 2014-04-20 00:26:29 +02:00
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