mirror_zfs/module/os/linux/zfs
Mauricio Faria de Oliveira 0c46813805 Check for unlinked znodes after igrab()
The changes in commit 41e1aa2a / PR #9583 introduced a regression on
tmpfile_001_pos: fsetxattr() on a O_TMPFILE file descriptor started
to fail with errno ENODATA:

    openat(AT_FDCWD, "/test", O_RDWR|O_TMPFILE, 0666) = 3
    <...>
    fsetxattr(3, "user.test", <...>, 64, 0) = -1 ENODATA

The originally proposed change on PR #9583 is not susceptible to it,
so just move the code/if-checks around back in that way, to fix it.

Reviewed-by: Pavel Snajdr <snajpa@snajpa.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Original-patch-by: Heitor Alves de Siqueira <halves@canonical.com>
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
Closes #9602
2019-11-21 12:24:03 -08:00
..
abd.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
arc_os.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
Makefile.in Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
mmp_os.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
policy.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
qat_compress.c QAT related bug fixes 2019-09-12 13:33:44 -07:00
qat_crypt.c QAT related bug fixes 2019-09-12 13:33:44 -07:00
qat.c QAT related bug fixes 2019-09-12 13:33:44 -07:00
spa_misc_os.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
spa_stats.c Fix strdup conflict on other platforms 2019-10-10 09:47:06 -07:00
trace.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
vdev_disk.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
vdev_file.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_acl.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_ctldir.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
zfs_debug.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
zfs_dir.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_file_os.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_ioctl_os.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_onexit_os.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_sysfs.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_vfsops.c Partially revert 5a6ac4c 2019-11-18 13:05:56 -08:00
zfs_vnops.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zfs_znode.c Check for unlinked znodes after igrab() 2019-11-21 12:24:03 -08:00
zio_crypt.c Linux 4.14, 4.19, 5.0+ compat: SIMD save/restore 2019-10-24 10:17:33 -07:00
zio_os.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
zpl_ctldir.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
zpl_export.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
zpl_file.c Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zpl_inode.c Partially revert 5a6ac4c 2019-11-18 13:05:56 -08:00
zpl_super.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
zpl_xattr.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
zvol_os.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00