Commit 7d1b3778 authored by Bob Peterson's avatar Bob Peterson Committed by Andreas Gruenbacher

gfs2: Eliminate gfs2_trim_blocks

Function gfs2_trim_blocks is not referenced. Eliminate it.
Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent cfcdb5ba
...@@ -2035,14 +2035,6 @@ static int do_shrink(struct inode *inode, u64 newsize) ...@@ -2035,14 +2035,6 @@ static int do_shrink(struct inode *inode, u64 newsize)
return error; return error;
} }
void gfs2_trim_blocks(struct inode *inode)
{
int ret;
ret = do_shrink(inode, inode->i_size);
WARN_ON(ret != 0);
}
/** /**
* do_grow - Touch and update inode size * do_grow - Touch and update inode size
* @inode: The inode * @inode: The inode
......
...@@ -58,7 +58,6 @@ extern int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock, ...@@ -58,7 +58,6 @@ extern int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock,
extern int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock, extern int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock,
unsigned *extlen, bool *new); unsigned *extlen, bool *new);
extern int gfs2_setattr_size(struct inode *inode, u64 size); extern int gfs2_setattr_size(struct inode *inode, u64 size);
extern void gfs2_trim_blocks(struct inode *inode);
extern int gfs2_truncatei_resume(struct gfs2_inode *ip); extern int gfs2_truncatei_resume(struct gfs2_inode *ip);
extern int gfs2_file_dealloc(struct gfs2_inode *ip); extern int gfs2_file_dealloc(struct gfs2_inode *ip);
extern int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset, extern int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment