gfs2: Remove unnecessary extern declarations
Make log operations statuc; they are only used locally. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
Родитель
ce895cf15a
Коммит
32ac43f6a4
|
@ -870,7 +870,7 @@ static void databuf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const struct gfs2_log_operations gfs2_buf_lops = {
|
static const struct gfs2_log_operations gfs2_buf_lops = {
|
||||||
.lo_before_commit = buf_lo_before_commit,
|
.lo_before_commit = buf_lo_before_commit,
|
||||||
.lo_after_commit = buf_lo_after_commit,
|
.lo_after_commit = buf_lo_after_commit,
|
||||||
.lo_before_scan = buf_lo_before_scan,
|
.lo_before_scan = buf_lo_before_scan,
|
||||||
|
@ -879,7 +879,7 @@ const struct gfs2_log_operations gfs2_buf_lops = {
|
||||||
.lo_name = "buf",
|
.lo_name = "buf",
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct gfs2_log_operations gfs2_revoke_lops = {
|
static const struct gfs2_log_operations gfs2_revoke_lops = {
|
||||||
.lo_before_commit = revoke_lo_before_commit,
|
.lo_before_commit = revoke_lo_before_commit,
|
||||||
.lo_after_commit = revoke_lo_after_commit,
|
.lo_after_commit = revoke_lo_after_commit,
|
||||||
.lo_before_scan = revoke_lo_before_scan,
|
.lo_before_scan = revoke_lo_before_scan,
|
||||||
|
@ -888,7 +888,7 @@ const struct gfs2_log_operations gfs2_revoke_lops = {
|
||||||
.lo_name = "revoke",
|
.lo_name = "revoke",
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct gfs2_log_operations gfs2_databuf_lops = {
|
static const struct gfs2_log_operations gfs2_databuf_lops = {
|
||||||
.lo_before_commit = databuf_lo_before_commit,
|
.lo_before_commit = databuf_lo_before_commit,
|
||||||
.lo_after_commit = databuf_lo_after_commit,
|
.lo_after_commit = databuf_lo_after_commit,
|
||||||
.lo_scan_elements = databuf_lo_scan_elements,
|
.lo_scan_elements = databuf_lo_scan_elements,
|
||||||
|
|
|
@ -20,11 +20,6 @@
|
||||||
((sizeof(struct gfs2_log_descriptor) + (2 * sizeof(__be64) - 1)) & \
|
((sizeof(struct gfs2_log_descriptor) + (2 * sizeof(__be64) - 1)) & \
|
||||||
~(2 * sizeof(__be64) - 1))
|
~(2 * sizeof(__be64) - 1))
|
||||||
|
|
||||||
extern const struct gfs2_log_operations gfs2_glock_lops;
|
|
||||||
extern const struct gfs2_log_operations gfs2_buf_lops;
|
|
||||||
extern const struct gfs2_log_operations gfs2_revoke_lops;
|
|
||||||
extern const struct gfs2_log_operations gfs2_databuf_lops;
|
|
||||||
|
|
||||||
extern const struct gfs2_log_operations *gfs2_log_ops[];
|
extern const struct gfs2_log_operations *gfs2_log_ops[];
|
||||||
extern u64 gfs2_log_bmap(struct gfs2_sbd *sdp);
|
extern u64 gfs2_log_bmap(struct gfs2_sbd *sdp);
|
||||||
extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page,
|
extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче