xfs: use VM_NORESERVE in xfile_create
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:16 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:51 +0000 (11:36 +0530)
commitb44c0eb8ae9c3e22cfa113774134673ac18ac848
treeca470efa64b577dd6513f23bfc24e2c1350ef812
parent9d8b36744935f83c5553e6f242b9961f676628ed
xfs: use VM_NORESERVE in xfile_create

xfile_create creates a (potentially large) sparse file.  Pass
VM_NORESERVE to shmem_file_setup to not account for the entire file size
at file creation time.

Reported-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/xfile.c