]> www.infradead.org Git - users/willy/xarray.git/commit
xfs: skip all of xfs_file_release when shut down
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Aug 2024 07:39:37 +0000 (09:39 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 3 Sep 2024 04:37:38 +0000 (10:07 +0530)
commitc741d79c1a975cc3904ed8a491d6338ac852d43d
treeafa07609ce1186c846a0043dddfe7e521a9ebcb2
parent98e44e2bc0fb15230b10f375db55e4b0bbc295aa
xfs: skip all of xfs_file_release when shut down

There is no point in trying to free post-EOF blocks when the file system
is shutdown, as it will just error out ASAP.  Instead return instantly
when xfs_file_release is called on a shut down file system.

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/xfs_file.c