aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/meta_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/meta_io.c')
-rw-r--r--fs/gfs2/meta_io.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index 870d65ae7ae2..8d6f13256b26 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -89,27 +89,6 @@ void gfs2_aspace_put(struct inode *aspace)
89} 89}
90 90
91/** 91/**
92 * gfs2_meta_inval - Invalidate all buffers associated with a glock
93 * @gl: the glock
94 *
95 */
96
97void gfs2_meta_inval(struct gfs2_glock *gl)
98{
99 struct gfs2_sbd *sdp = gl->gl_sbd;
100 struct inode *aspace = gl->gl_aspace;
101 struct address_space *mapping = gl->gl_aspace->i_mapping;
102
103 gfs2_assert_withdraw(sdp, !atomic_read(&gl->gl_ail_count));
104
105 atomic_inc(&aspace->i_writecount);
106 truncate_inode_pages(mapping, 0);
107 atomic_dec(&aspace->i_writecount);
108
109 gfs2_assert_withdraw(sdp, !mapping->nrpages);
110}
111
112/**
113 * gfs2_meta_sync - Sync all buffers associated with a glock 92 * gfs2_meta_sync - Sync all buffers associated with a glock
114 * @gl: The glock 93 * @gl: The glock
115 * 94 *