summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_bmap_util.c
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2022-07-11 10:58:01 +0300
committerBorislav Petkov <bp@suse.de>2022-07-11 10:58:01 +0300
commit5a88c48f4146de2c8c2ed7ddcaa76f898869f3a3 (patch)
treefc501a1b940026cbd5316f8665236c109d5f1a2e /fs/xfs/xfs_bmap_util.c
parentb69a2afd5afce9bf6d56e349d6ab592c916e20f2 (diff)
parent32346491ddf24599decca06190ebca03ff9de7f8 (diff)
downloadlinux-5a88c48f4146de2c8c2ed7ddcaa76f898869f3a3.tar.xz
Merge tag 'v5.19-rc6' into tip:x86/kdump
Merge rc6 to pick up dependent changes to the bootparam UAPI header. Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r--fs/xfs/xfs_bmap_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c
index 52be58372c63..85e1a26c92e8 100644
--- a/fs/xfs/xfs_bmap_util.c
+++ b/fs/xfs/xfs_bmap_util.c
@@ -686,6 +686,8 @@ xfs_can_free_eofblocks(
* forever.
*/
end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)XFS_ISIZE(ip));
+ if (XFS_IS_REALTIME_INODE(ip) && mp->m_sb.sb_rextsize > 1)
+ end_fsb = roundup_64(end_fsb, mp->m_sb.sb_rextsize);
last_fsb = XFS_B_TO_FSB(mp, mp->m_super->s_maxbytes);
if (last_fsb <= end_fsb)
return false;