[Devel] [PATCH RH9] xfs: Zero partial block
Kirill Tkhai
ktkhai at virtuozzo.com
Sun Dec 19 23:07:22 MSK 2021
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