mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Currently, device removal has to scan all metadata for pointers to the device being removed. Add a new method, with the same interface as bch2_dev_data_drop(), that scans by backpointers instead - this will drastically speed up device removal. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
8 lines
268 B
C
8 lines
268 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHEFS_MIGRATE_H
|
|
#define _BCACHEFS_MIGRATE_H
|
|
|
|
int bch2_dev_data_drop_by_backpointers(struct bch_fs *, unsigned, unsigned);
|
|
int bch2_dev_data_drop(struct bch_fs *, unsigned, unsigned);
|
|
|
|
#endif /* _BCACHEFS_MIGRATE_H */
|