Kent Overstreet
d4c8bb69d0
bcachefs: Convert bch2_fs_open() to darray
...
Open coded dynamic arrays are deprecated.
Signed-off-by: Kent Overstreet <[email protected] >
2023-11-05 13:12:17 -05:00
Kent Overstreet
bf5a261c7a
bcachefs: Assorted fixes for clang
...
clang had a few more warnings about enum conversion, and also didn't
like the opts.c initializer.
Signed-off-by: Kent Overstreet <[email protected] >
2023-10-22 17:10:09 -04:00
Kent Overstreet
c42b57c451
bcachefs: bch2_buffered_write large folio conversion
...
Signed-off-by: Kent Overstreet <[email protected] >
2023-10-22 17:09:59 -04:00
Kent Overstreet
9edbcc72f6
bcachefs: Fix bch2_evict_subvolume_inodes()
...
This fixes a bug in bch2_evict_subvolume_inodes(): d_mark_dontcache()
doesn't handle the case where i_count is already 0, we need to grab and
put the inode in order for it to be dropped.
Signed-off-by: Kent Overstreet <[email protected] >
2023-10-22 17:09:57 -04:00
Kent Overstreet
91d961badf
bcachefs: darrays
...
Inspired by CCAN darray - simple, stupid resizable (dynamic) arrays.
Signed-off-by: Kent Overstreet <[email protected] >
2023-10-22 17:09:28 -04:00