[Devel] [PATCH RHEL9 COMMIT] xfs: Zero partial block
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Dec 27 15:06:41 MSK 2021
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.37
------>
commit 944d91b2bc9b2e82274d7c69ec659665b6fbbbc7
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Mon Dec 27 15:06:41 2021 +0300
xfs: Zero partial block
https://jira.sw.ru/browse/PSBM-136140
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
fs/xfs/xfs_ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index 33fa33841201..fdab467c034f 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -687,7 +687,7 @@ xfs_ioc_space(
if (bf->l_start > XFS_ISIZE(ip)) {
error = xfs_alloc_file_space(ip, XFS_ISIZE(ip),
- bf->l_start - XFS_ISIZE(ip), 0);
+ bf->l_start - XFS_ISIZE(ip), XFS_BMAPI_PREALLOC);
if (error)
goto out_unlock;
}
More information about the Devel
mailing list