xfs: don't modify file and inode flags for shmem files
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:19 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:52 +0000 (11:36 +0530)
commita2078df025d92046cc98a9fce65220abd864781e
treedf8b0f02f9721ead8dc80ebb3e518ab9ce9daa5b
parentefc9dc096399c692bd258ec9cdbe6b868a59545a
xfs: don't modify file and inode flags for shmem files

shmem_file_setup is explicitly intended for a file that can be
fully read and written by kernel users without restrictions.  Don't
poke into internals to change random flags in the file or inode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/xfile.c