Skip to content

Commit 6e13dbe

Browse files
Christoph HellwigChandan Babu R
authored andcommitted
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>
1 parent 169d89f commit 6e13dbe

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

fs/xfs/xfs_inode.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,9 +1086,6 @@ xfs_release(
10861086
xfs_mount_t *mp = ip->i_mount;
10871087
int error = 0;
10881088

1089-
if (!S_ISREG(VFS_I(ip)->i_mode) || (VFS_I(ip)->i_mode == 0))
1090-
return 0;
1091-
10921089
/* If this is a read-only mount, don't do this (would generate I/O) */
10931090
if (xfs_is_readonly(mp))
10941091
return 0;

0 commit comments

Comments
 (0)