aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_icache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_icache.c')
-rw-r--r--fs/xfs/xfs_icache.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c
index 32908909815e..906e6dcd2c55 100644
--- a/fs/xfs/xfs_icache.c
+++ b/fs/xfs/xfs_icache.c
@@ -1215,8 +1215,15 @@ xfs_inode_free_eofblocks(
1215 mapping_tagged(VFS_I(ip)->i_mapping, PAGECACHE_TAG_DIRTY)) 1215 mapping_tagged(VFS_I(ip)->i_mapping, PAGECACHE_TAG_DIRTY))
1216 return 0; 1216 return 0;
1217 1217
1218 if (eofb && !xfs_inode_match_id(ip, eofb)) 1218 if (eofb) {
1219 return 0; 1219 if (!xfs_inode_match_id(ip, eofb))
1220 return 0;
1221
1222 /* skip the inode if the file size is too small */
1223 if (eofb->eof_flags & XFS_EOF_FLAGS_MINFILESIZE &&
1224 XFS_ISIZE(ip) < eofb->eof_min_file_size)
1225 return 0;
1226 }
1220 1227
1221 ret = xfs_free_eofblocks(ip->i_mount, ip, true); 1228 ret = xfs_free_eofblocks(ip->i_mount, ip, true);
1222 1229