diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-12-16 14:42:09 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-12-16 14:42:09 -0500 |
commit | 92d34f6ed29e90d48c40a4c31816df805edfe483 (patch) | |
tree | 01686f4d7c446156ee54a8eb5dce2132ef54993c /libbcachefs/super-io.c | |
parent | f574ca05f8b8284f28e61d5e788550bed15fc006 (diff) |
Update bcachefs sources to fbb669e9de bcachefs: Kill btree_node_iter_large
Diffstat (limited to 'libbcachefs/super-io.c')
-rw-r--r-- | libbcachefs/super-io.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libbcachefs/super-io.c b/libbcachefs/super-io.c index b36cfdf..daaeaf0 100644 --- a/libbcachefs/super-io.c +++ b/libbcachefs/super-io.c @@ -795,6 +795,17 @@ out: return ret; } +void __bch2_check_set_feature(struct bch_fs *c, unsigned feat) +{ + mutex_lock(&c->sb_lock); + if (!(c->sb.features & (1ULL << feat))) { + c->disk_sb.sb->features[0] |= cpu_to_le64(1ULL << feat); + + bch2_write_super(c); + } + mutex_unlock(&c->sb_lock); +} + /* BCH_SB_FIELD_journal: */ static int u64_cmp(const void *_l, const void *_r) |