]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: eager inode attr fork init needs attr feature awareness
authorDave Chinner <dchinner@redhat.com>
Tue, 6 Apr 2021 14:01:00 +0000 (07:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 Apr 2021 21:37:06 +0000 (14:37 -0700)
commitb5e00e43291326aee2f0fa2b1c4bcab5e3dcd3c9
tree75c710f88ff4bc15d1c89bcc37dc6f49c5f01ecc
parent6560ffe513d843abd2f889215e29d641664201f6
xfs: eager inode attr fork init needs attr feature awareness

The pitfalls of regression testing on a machine without realising
that selinux was disabled. Only set the attr fork during inode
allocation if the attr feature bits are already set on the
superblock.

Fixes: 823e3a285807 ("xfs: initialise attr fork on inode create")
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Tested-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
fs/xfs/xfs_inode.c