Skip to content

Commit 7d1b377

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: Eliminate gfs2_trim_blocks
Function gfs2_trim_blocks is not referenced. Eliminate it. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent cfcdb5b commit 7d1b377

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

fs/gfs2/bmap.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,14 +2035,6 @@ static int do_shrink(struct inode *inode, u64 newsize)
20352035
return error;
20362036
}
20372037

2038-
void gfs2_trim_blocks(struct inode *inode)
2039-
{
2040-
int ret;
2041-
2042-
ret = do_shrink(inode, inode->i_size);
2043-
WARN_ON(ret != 0);
2044-
}
2045-
20462038
/**
20472039
* do_grow - Touch and update inode size
20482040
* @inode: The inode

fs/gfs2/bmap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ extern int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock,
5858
extern int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock,
5959
unsigned *extlen, bool *new);
6060
extern int gfs2_setattr_size(struct inode *inode, u64 size);
61-
extern void gfs2_trim_blocks(struct inode *inode);
6261
extern int gfs2_truncatei_resume(struct gfs2_inode *ip);
6362
extern int gfs2_file_dealloc(struct gfs2_inode *ip);
6463
extern int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,

0 commit comments

Comments
 (0)