super-io.c (2b161cc7cb077e9f8479f1aa132c78c37ce845cd) | super-io.c (3c471b65889aa22d6ba4f8e3d2e5006bb70fdb58) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#include "bcachefs.h" 4#include "checksum.h" 5#include "counters.h" 6#include "disk_groups.h" 7#include "ec.h" 8#include "error.h" --- 936 unchanged lines hidden (view full) --- 945 memset(&sb_written, 0, sizeof(sb_written)); 946 947 /* Make sure we're using the new magic numbers: */ 948 c->disk_sb.sb->magic = BCHFS_MAGIC; 949 c->disk_sb.sb->layout.magic = BCHFS_MAGIC; 950 951 le64_add_cpu(&c->disk_sb.sb->seq, 1); 952 | 1// SPDX-License-Identifier: GPL-2.0 2 3#include "bcachefs.h" 4#include "checksum.h" 5#include "counters.h" 6#include "disk_groups.h" 7#include "ec.h" 8#include "error.h" --- 936 unchanged lines hidden (view full) --- 945 memset(&sb_written, 0, sizeof(sb_written)); 946 947 /* Make sure we're using the new magic numbers: */ 948 c->disk_sb.sb->magic = BCHFS_MAGIC; 949 c->disk_sb.sb->layout.magic = BCHFS_MAGIC; 950 951 le64_add_cpu(&c->disk_sb.sb->seq, 1); 952 |
953 if (test_bit(BCH_FS_ERROR, &c->flags)) | 953 if (test_bit(BCH_FS_error, &c->flags)) |
954 SET_BCH_SB_HAS_ERRORS(c->disk_sb.sb, 1); | 954 SET_BCH_SB_HAS_ERRORS(c->disk_sb.sb, 1); |
955 if (test_bit(BCH_FS_TOPOLOGY_ERROR, &c->flags)) | 955 if (test_bit(BCH_FS_topology_error, &c->flags)) |
956 SET_BCH_SB_HAS_TOPOLOGY_ERRORS(c->disk_sb.sb, 1); 957 958 SET_BCH_SB_BIG_ENDIAN(c->disk_sb.sb, CPU_BIG_ENDIAN); 959 960 bch2_sb_counters_from_cpu(c); 961 bch2_sb_members_from_cpu(c); 962 bch2_sb_members_cpy_v2_v1(&c->disk_sb); 963 bch2_sb_errors_from_cpu(c); --- 411 unchanged lines hidden --- | 956 SET_BCH_SB_HAS_TOPOLOGY_ERRORS(c->disk_sb.sb, 1); 957 958 SET_BCH_SB_BIG_ENDIAN(c->disk_sb.sb, CPU_BIG_ENDIAN); 959 960 bch2_sb_counters_from_cpu(c); 961 bch2_sb_members_from_cpu(c); 962 bch2_sb_members_cpy_v2_v1(&c->disk_sb); 963 bch2_sb_errors_from_cpu(c); --- 411 unchanged lines hidden --- |