summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glops.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2020-10-27 12:29:37 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2020-10-29 22:16:46 +0100
commit4a55752ae288caaef8df4c5f4e07393c127bb9f0 (patch)
tree264154bb3f82260be46d540148e27ca9c483dd89 /fs/gfs2/glops.h
parentc4af59bd441f90e185a652cce1aaf38dea293bf2 (diff)
downloadlinux-stable-4a55752ae288caaef8df4c5f4e07393c127bb9f0.tar.gz
linux-stable-4a55752ae288caaef8df4c5f4e07393c127bb9f0.tar.bz2
linux-stable-4a55752ae288caaef8df4c5f4e07393c127bb9f0.zip
gfs2: Split up gfs2_meta_sync into inode and rgrp versions
Before this patch, function gfs2_meta_sync called filemap_fdatawrite to write the address space for the metadata being synced. That's great for inodes, but resource groups all point to the same superblock-address space, sdp->sd_aspace. Each rgrp has its own range of blocks on which it should operate. That meant every time an rgrp's metadata was synced, it would write all of them instead of just the range. This patch eliminates function gfs2_meta_sync and tailors specific metasync functions for inodes and rgrps. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/glops.h')
-rw-r--r--fs/gfs2/glops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/glops.h b/fs/gfs2/glops.h
index 2dd192e85618..695898afcaf1 100644
--- a/fs/gfs2/glops.h
+++ b/fs/gfs2/glops.h
@@ -22,6 +22,7 @@ extern const struct gfs2_glock_operations gfs2_quota_glops;
extern const struct gfs2_glock_operations gfs2_journal_glops;
extern const struct gfs2_glock_operations *gfs2_glops_list[];
+extern int gfs2_inode_metasync(struct gfs2_glock *gl);
extern void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync);
#endif /* __GLOPS_DOT_H__ */