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/lops.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/lops.c')
-rw-r--r-- | fs/gfs2/lops.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index 17c5b5d7dc88..010b9fb9fec6 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c | |||
@@ -579,6 +579,24 @@ static int buf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, | |||
579 | return error; | 579 | return error; |
580 | } | 580 | } |
581 | 581 | ||
582 | /** | ||
583 | * gfs2_meta_sync - Sync all buffers associated with a glock | ||
584 | * @gl: The glock | ||
585 | * | ||
586 | */ | ||
587 | |||
588 | static void gfs2_meta_sync(struct gfs2_glock *gl) | ||
589 | { | ||
590 | struct address_space *mapping = gfs2_glock2aspace(gl); | ||
591 | int error; | ||
592 | |||
593 | filemap_fdatawrite(mapping); | ||
594 | error = filemap_fdatawait(mapping); | ||
595 | |||
596 | if (error) | ||
597 | gfs2_io_error(gl->gl_sbd); | ||
598 | } | ||
599 | |||
582 | static void buf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) | 600 | static void buf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) |
583 | { | 601 | { |
584 | struct gfs2_inode *ip = GFS2_I(jd->jd_inode); | 602 | struct gfs2_inode *ip = GFS2_I(jd->jd_inode); |