gfs2: Eliminate gfs2_trim_blocks
PATCH 1/1 gfs2: Eliminate gfs2_trim_blocks
Function gfs2_trim_blocks is not referenced. Eliminate it.
Signed-off-by Bob Peterson <[email protected]>
--- fs/gfs2/bmap.c | 8 -------- fs/gfs2/bmap.h | 1 - 2 files changed, 9 deletions(-)
fs/gfs2/bmap.c +0 -8
@@ -2035,14 +2035,6 @@ static int do_shrink(struct inode *inode, u64 newsize)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 * @inode: The inode
fs/gfs2/bmap.h +0 -1
@@ -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,unsigned *extlen,bool *new);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_file_dealloc (struct gfs2_inode *ip); extern int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
Signature · 1 line
2.39.2