Lines Matching refs:sb_clean
146 struct bch_sb_field_clean *clean, *sb_clean; in bch2_read_superblock_clean() local
150 sb_clean = bch2_sb_field_get(c->disk_sb.sb, clean); in bch2_read_superblock_clean()
152 if (fsck_err_on(!sb_clean, c, in bch2_read_superblock_clean()
161 clean = kmemdup(sb_clean, vstruct_bytes(&sb_clean->field), in bch2_read_superblock_clean()
283 struct bch_sb_field_clean *sb_clean; in bch2_fs_mark_clean() local
299 u64s = sizeof(*sb_clean) / sizeof(u64) + c->journal.entry_u64s_reserved; in bch2_fs_mark_clean()
301 sb_clean = bch2_sb_field_resize(&c->disk_sb, clean, u64s); in bch2_fs_mark_clean()
302 if (!sb_clean) { in bch2_fs_mark_clean()
307 sb_clean->flags = 0; in bch2_fs_mark_clean()
308 sb_clean->journal_seq = cpu_to_le64(atomic64_read(&c->journal.seq)); in bch2_fs_mark_clean()
311 BUG_ON(le64_to_cpu(sb_clean->journal_seq) > S64_MAX); in bch2_fs_mark_clean()
313 entry = sb_clean->start; in bch2_fs_mark_clean()
316 BUG_ON((void *) entry > vstruct_end(&sb_clean->field)); in bch2_fs_mark_clean()
319 vstruct_end(&sb_clean->field) - (void *) entry); in bch2_fs_mark_clean()
325 ret = bch2_sb_clean_validate_late(c, sb_clean, WRITE); in bch2_fs_mark_clean()