diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2013-07-03 10:13:32 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2013-08-19 12:26:32 -0400 |
commit | 7c0ef28a2c9a768ffb63c1c3d9542b6e175ab260 (patch) | |
tree | e423a9d588de594095d7387dac9bb5c8dfa073bd /fs/gfs2/meta_io.c | |
parent | d6a5e06cd17a3f901231e345e4acc1c3dab9fbb8 (diff) |
GFS2: Move gfs2_sync_meta to lops.c
Since gfs2_sync_meta() is only called from a single file, lets move
it to lops.c where it is used, and mark it static. At the same
time, we can clean up the meta_io.h header too.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/meta_io.c')
-rw-r--r-- | fs/gfs2/meta_io.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c index 0da390686c08..932415050540 100644 --- a/fs/gfs2/meta_io.c +++ b/fs/gfs2/meta_io.c | |||
@@ -98,24 +98,6 @@ const struct address_space_operations gfs2_meta_aops = { | |||
98 | }; | 98 | }; |
99 | 99 | ||
100 | /** | 100 | /** |
101 | * gfs2_meta_sync - Sync all buffers associated with a glock | ||
102 | * @gl: The glock | ||
103 | * | ||
104 | */ | ||
105 | |||
106 | void gfs2_meta_sync(struct gfs2_glock *gl) | ||
107 | { | ||
108 | struct address_space *mapping = gfs2_glock2aspace(gl); | ||
109 | int error; | ||
110 | |||
111 | filemap_fdatawrite(mapping); | ||
112 | error = filemap_fdatawait(mapping); | ||
113 | |||
114 | if (error) | ||
115 | gfs2_io_error(gl->gl_sbd); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * gfs2_getbuf - Get a buffer with a given address space | 101 | * gfs2_getbuf - Get a buffer with a given address space |
120 | * @gl: the glock | 102 | * @gl: the glock |
121 | * @blkno: the block number (filesystem scope) | 103 | * @blkno: the block number (filesystem scope) |