[Devel] [PATCH RH7] xfs: Zero partial block

Kirill Tkhai ktkhai at virtuozzo.com
Mon Dec 20 00:04:10 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 722396680482..1074d7d2da0a 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -773,7 +773,7 @@ xfs_ioc_space(
 		flags |= XFS_PREALLOC_CLEAR;
 		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_ZERO);
 			if (error)
 				goto out_unlock;
 		}




More information about the Devel mailing list