mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
bcachefs: Improved comment for bch2_replicas_gc2()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
cb1b479dc1
commit
38e3d93fa1
1 changed files with 8 additions and 2 deletions
|
@ -550,8 +550,14 @@ int bch2_replicas_gc_start(struct bch_fs *c, unsigned typemask)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* New much simpler mechanism for clearing out unneeded replicas entries: */
|
||||
|
||||
/*
|
||||
* New much simpler mechanism for clearing out unneeded replicas entries - drop
|
||||
* replicas entries that have 0 sectors used.
|
||||
*
|
||||
* However, we don't track sector counts for journal usage, so this doesn't drop
|
||||
* any BCH_DATA_journal entries; the old bch2_replicas_gc_(start|end) mechanism
|
||||
* is retained for that.
|
||||
*/
|
||||
int bch2_replicas_gc2(struct bch_fs *c)
|
||||
{
|
||||
struct bch_replicas_cpu new = { 0 };
|
||||
|
|
Loading…
Add table
Reference in a new issue