Skip to content

Commit 3a58dfb

Browse files
author
Kent Overstreet
committed
bcachefs: counters.c -> sb-counters.c
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 12207f4 commit 3a58dfb

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

fs/bcachefs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ bcachefs-y := \
2727
checksum.o \
2828
clock.o \
2929
compress.o \
30-
counters.o \
3130
darray.o \
3231
debug.o \
3332
dirent.o \
@@ -71,6 +70,7 @@ bcachefs-y := \
7170
reflink.o \
7271
replicas.o \
7372
sb-clean.o \
73+
sb-counters.o \
7474
sb-downgrade.o \
7575
sb-errors.o \
7676
sb-members.o \

fs/bcachefs/counters.c renamed to fs/bcachefs/sb-counters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include "bcachefs.h"
33
#include "super-io.h"
4-
#include "counters.h"
4+
#include "sb-counters.h"
55

66
/* BCH_SB_FIELD_counters */
77

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
#ifndef _BCACHEFS_COUNTERS_H
3-
#define _BCACHEFS_COUNTERS_H
2+
#ifndef _BCACHEFS_SB_COUNTERS_H
3+
#define _BCACHEFS_SB_COUNTERS_H
44

55
#include "bcachefs.h"
66
#include "super-io.h"
77

8-
98
int bch2_sb_counters_to_cpu(struct bch_fs *);
109
int bch2_sb_counters_from_cpu(struct bch_fs *);
1110

@@ -14,4 +13,4 @@ int bch2_fs_counters_init(struct bch_fs *);
1413

1514
extern const struct bch_sb_field_ops bch_sb_field_ops_counters;
1615

17-
#endif // _BCACHEFS_COUNTERS_H
16+
#endif // _BCACHEFS_SB_COUNTERS_H

fs/bcachefs/super-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include "bcachefs.h"
44
#include "checksum.h"
5-
#include "counters.h"
65
#include "disk_groups.h"
76
#include "ec.h"
87
#include "error.h"
@@ -13,6 +12,7 @@
1312
#include "replicas.h"
1413
#include "quota.h"
1514
#include "sb-clean.h"
15+
#include "sb-counters.h"
1616
#include "sb-downgrade.h"
1717
#include "sb-errors.h"
1818
#include "sb-members.h"

fs/bcachefs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "checksum.h"
2424
#include "clock.h"
2525
#include "compress.h"
26-
#include "counters.h"
2726
#include "debug.h"
2827
#include "disk_groups.h"
2928
#include "ec.h"
@@ -49,6 +48,7 @@
4948
#include "recovery.h"
5049
#include "replicas.h"
5150
#include "sb-clean.h"
51+
#include "sb-counters.h"
5252
#include "sb-errors.h"
5353
#include "sb-members.h"
5454
#include "snapshot.h"

0 commit comments

Comments
 (0)