summaryrefslogtreecommitdiff
path: root/fs/squashfs/decompressor.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2017-10-09 18:37:23 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-27 08:38:10 (GMT)
commit0fe7d85b5a9929271409c6bc7a65d1529c4f9a9e (patch)
tree863aa8d98770329128246c456fb4392dca484078 /fs/squashfs/decompressor.h
parent3a5a338aec3f80087b3486fa9f163593f2a5def6 (diff)
downloadlinux-0fe7d85b5a9929271409c6bc7a65d1529c4f9a9e.tar.xz
xfs: don't change inode mode if ACL update fails
commit 67f2ffe31d1a683170c2ba0ecc643e42a5fdd397 upstream. If we get ENOSPC half way through setting the ACL, the inode mode can still be changed even though the ACL does not exist. Reorder the operation to only change the mode of the inode if the ACL is set correctly. Whilst this does not fix the problem with crash consistency (that requires attribute addition to be a deferred op) it does prevent ENOSPC and other non-fatal errors setting an xattr to be handled sanely. This fixes xfstests generic/449. Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/squashfs/decompressor.h')
0 files changed, 0 insertions, 0 deletions