mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
bcachefs: Delete some flag bits that are no longer used
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
72b7d6332b
commit
10b93677d3
@ -507,8 +507,6 @@ struct bch_dev {
|
|||||||
|
|
||||||
enum {
|
enum {
|
||||||
/* startup: */
|
/* startup: */
|
||||||
BCH_FS_INITIALIZED,
|
|
||||||
BCH_FS_ALLOC_READ_DONE,
|
|
||||||
BCH_FS_ALLOC_CLEAN,
|
BCH_FS_ALLOC_CLEAN,
|
||||||
BCH_FS_ALLOCATOR_RUNNING,
|
BCH_FS_ALLOCATOR_RUNNING,
|
||||||
BCH_FS_ALLOCATOR_STOPPING,
|
BCH_FS_ALLOCATOR_STOPPING,
|
||||||
|
@ -1129,8 +1129,6 @@ use_clean:
|
|||||||
goto err;
|
goto err;
|
||||||
bch_verbose(c, "stripes_read done");
|
bch_verbose(c, "stripes_read done");
|
||||||
|
|
||||||
set_bit(BCH_FS_ALLOC_READ_DONE, &c->flags);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we're not running fsck, this ensures bch2_fsck_err() calls are
|
* If we're not running fsck, this ensures bch2_fsck_err() calls are
|
||||||
* instead interpreted as bch2_inconsistent_err() calls:
|
* instead interpreted as bch2_inconsistent_err() calls:
|
||||||
@ -1315,7 +1313,6 @@ int bch2_fs_initialize(struct bch_fs *c)
|
|||||||
}
|
}
|
||||||
mutex_unlock(&c->sb_lock);
|
mutex_unlock(&c->sb_lock);
|
||||||
|
|
||||||
set_bit(BCH_FS_ALLOC_READ_DONE, &c->flags);
|
|
||||||
set_bit(BCH_FS_INITIAL_GC_DONE, &c->flags);
|
set_bit(BCH_FS_INITIAL_GC_DONE, &c->flags);
|
||||||
set_bit(BCH_FS_FSCK_DONE, &c->flags);
|
set_bit(BCH_FS_FSCK_DONE, &c->flags);
|
||||||
|
|
||||||
|
@ -461,9 +461,6 @@ int bch2_sb_to_fs(struct bch_fs *c, struct bch_sb *src)
|
|||||||
|
|
||||||
__copy_super(&c->disk_sb, src);
|
__copy_super(&c->disk_sb, src);
|
||||||
|
|
||||||
if (BCH_SB_INITIALIZED(c->disk_sb.sb))
|
|
||||||
set_bit(BCH_FS_INITIALIZED, &c->flags);
|
|
||||||
|
|
||||||
ret = bch2_sb_replicas_to_cpu_replicas(c);
|
ret = bch2_sb_replicas_to_cpu_replicas(c);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user