diff options
Diffstat (limited to 'fs/gfs2/lops.c')
-rw-r--r-- | fs/gfs2/lops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index cdadb92372f2..58f06400b7b8 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c | |||
@@ -589,8 +589,12 @@ static int buf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, | |||
589 | static void gfs2_meta_sync(struct gfs2_glock *gl) | 589 | static void gfs2_meta_sync(struct gfs2_glock *gl) |
590 | { | 590 | { |
591 | struct address_space *mapping = gfs2_glock2aspace(gl); | 591 | struct address_space *mapping = gfs2_glock2aspace(gl); |
592 | struct gfs2_sbd *sdp = gl->gl_sbd; | ||
592 | int error; | 593 | int error; |
593 | 594 | ||
595 | if (mapping == NULL) | ||
596 | mapping = &sdp->sd_aspace; | ||
597 | |||
594 | filemap_fdatawrite(mapping); | 598 | filemap_fdatawrite(mapping); |
595 | error = filemap_fdatawait(mapping); | 599 | error = filemap_fdatawait(mapping); |
596 | 600 | ||