]> Gentwo Git Trees - linux/.git/commit
xfs: remove the i_mode check in xfs_release
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Aug 2024 07:39:34 +0000 (09:39 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 3 Sep 2024 04:37:37 +0000 (10:07 +0530)
commit6e13dbebd5189cd8f70af9fb01b5146be7d7c7db
treec7efbc1e24c32a97ba4c81ab8ba13d4c73e62d63
parent169d89f33bb52efc9234715d09d83a2848d0b5b2
xfs: remove the i_mode check in xfs_release

xfs_release is only called from xfs_file_release, which is wired up as
the f_op->release handler for regular files only.

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_inode.c