summaryrefslogtreecommitdiff
path: root/include/linux/slab.h
AgeCommit message (Collapse)Author
2024-12-03Update bcachefs sources to 4a32728376a8 bcachefs: ↵Kent Overstreet
bcachefs_metadata_version_inode_depth Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-10-20Update bcachefs sources to 1dbc147a6eb0 bcachefs: Add version check for ↵Kent Overstreet
bch_btree_ptr_v2.sectors_written validate Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-08-23Update bcachefs sources to 22fa8fc32e6a bcachefs: rcu_pending now works in ↵Kent Overstreet
userspace
2024-05-24Update bcachefs sources to 254510a1c269 bcachefs: ↵Kent Overstreet
btree_ptr_sectors_written() now takes bkey_s_c
2024-05-09Update bcachefs sources to 07f9a27f1969 bcachefs: add no_invalid_checks flagKent Overstreet
2024-03-30Update bcachefs sources to 794723fc10c4 bcachefs: Topology repair now uses ↵Kent Overstreet
nodes found by scanning to fill holes Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-16Move c_src dirs back to toplevelKent Overstreet
We just wanted c sourcefiles out of the top level, not c source directories. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-16move Rust sources to top level, C sources into c_srcThomas Bertschinger
This moves the Rust sources out of rust_src/ and into the top level. Running the bcachefs executable out of the development tree is now: $ ./target/release/bcachefs command or $ cargo run --profile release -- command instead of "./bcachefs command". Building and installing is still: $ make && make install Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-11-07Fix build on 32 bitKent Overstreet
size_t is apparently not an unsigned long on 32 bit, which is what rounddown_pow_of_two() returns. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-08-01Update bcachefs sources to 33a60d9b05 bcachefs: Assorted fixes for clangKent Overstreet
2023-07-15Update bcachefs sources to e14d7c7195 bcachefs: Compression levelsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-07-09Update bcachefs sources to da7d42a9a2 bcachefs: Add new assertions for ↵Kent Overstreet
shutdown path Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-03-06Update bcachefs sources to 3856459b1b bcachefs: ↵Kent Overstreet
bch2_btree_iter_peek_node_and_restart() Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-02-09Update bcachefs sources to ea93c26e98 fixup! bcachefs: We can handle missing ↵Kent Overstreet
btree roots for all alloc btrees Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-12-19Change memory reclaimKent Overstreet
- Spin up a background thread to call the shrinkers every 1 second - Memory allocations will only call reclaim after a failed allocation, not every single time This will be a major performance boost on allocation intensive workloads. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-03-30Update bcachefs sources to f638850417 bcachefs: bch2_trans_log_msg()Kent Overstreet
2022-03-21Shrinker improvementsKent Overstreet
After memory allocation failure, don't rely on /proc/meminfo to figure out how much memory we should free - instead unconditionally free 1/8th of each cache. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-04Update bcachefs sources to 50ac18afbb bcachefs: Fix an uninitialized variableKent Overstreet
2022-01-01Retry memory allocation failuresKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-05-17Fix some minor compiler warningsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-08Fix krealloc() alignmentKent Overstreet
bcachefs assumes kmalloc & krealloc give out allocations that are naturally aligned, like the kernel allocators do. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-29Update bcachefs sources to 18686af684 bcachefs: Inode backpointersv0.13Kent Overstreet
2020-11-30Update bcachefs sources to 021e62a098 bcachefs: Fix error in filesystem ↵Kent Overstreet
initialization
2020-11-08Fix kmalloc_array macroKent Overstreet
This was causing us some valgrind errors. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-05-23kmalloc: use posix_memalignYuxuan Shui
posix_memalign doesn't have the restriction that size must be a multiply of alignment. This also reverts the fix in commit f3fdbbfa92defb1f1d12c0038513b69b52baf33e. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-05-21Make sure aligned_alloc size is a multiply of alignmentYuxuan Shui
Fix a ASan complaint. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-05-05Fix building on muslYuxuan Shui
* Add missing linux/stddef.h includes * Explicitly cast PAGE_SIZE to size_t. PAGE_SIZE is defined without UL suffix in musl * Musl doesn't define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, so initialize the mutexes with pthread_once.
2019-04-17Update bcachefs sources to 6f603b8d79 bcachefs: some improvements to startup ↵Kent Overstreet
messages and options
2019-03-24Align allocations like the kernel doesKent Overstreet
2018-06-27Update bcachefs sources to 2cb70a82bc bcachefs: delete some debug codeKent Overstreet
2017-11-12Simple stupid memory reclaim codeKent Overstreet
2017-05-12Update bcachefs sources to 14e9ac5016 bcachefs: btree_iter fastpathKent Overstreet
2017-01-20bcache in userspace; userspace fsckKent Overstreet