OSDN Git Service

xfs: also remove cached ACLs when removing the underlying attr
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Jan 2020 23:25:38 +0000 (15:25 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Jan 2020 18:55:18 +0000 (10:55 -0800)
commit8cde9f259c7d91d05b12cc68993a9643d6b4e45f
treef43e9bfaeb6b4a9bf79538995207d27bee1c6809
parent84fd081f8ae92e05ace47d24e58f26f7af2994c7
xfs: also remove cached ACLs when removing the underlying attr

We should not just invalidate the ACL when setting the underlying
attribute, but also when removing it.  The ioctl interface gets that
right, but the normal xattr inteface skipped the xfs_forget_acl due
to an early return.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_xattr.c