Darrick J. Wong
cb7ccb9924
xfs: don't fail when converting shortform attr to long form during ATTR_REPLACE
...
commit 7b38460dc8e4eafba06c78f8e37099d3b34d473c upstream.
Kanda Motohiro reported that expanding a tiny xattr into a large xattr
fails on XFS because we remove the tiny xattr from a shortform fork and
then try to re-add it after converting the fork to extents format having
not removed the ATTR_REPLACE flag. This fails because the attr is no
longer present, causing a fs shutdown.
This is derived from the patch in his bug report, but we really
shouldn't ignore a nonzero retval from the remove call.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199119
Reported-by: kanda.motohiro@gmail.com
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-05 19:41:16 +01:00
..
2018-12-05 19:41:16 +01:00
2017-06-19 08:59:10 -07:00
2017-05-08 17:15:13 -07:00
2017-07-12 16:26:03 -07:00
2017-06-05 16:59:08 +02:00
2017-10-11 10:21:06 -07:00
2017-06-27 18:23:21 -07:00
2018-02-03 17:39:14 +01:00
2017-08-31 09:31:47 -07:00
2017-10-11 10:21:07 -07:00
2017-07-13 14:55:05 -07:00
2017-06-20 10:45:22 -07:00
2018-02-03 17:39:06 +01:00
2018-02-03 17:39:06 +01:00
2017-10-11 10:21:06 -07:00
2017-10-11 10:21:06 -07:00
2017-09-02 08:22:19 -07:00
2017-09-01 10:55:30 -07:00
2018-02-03 17:39:10 +01:00
2017-08-31 09:31:47 -07:00
2017-06-20 10:45:22 -07:00
2018-05-30 07:52:23 +02:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:15 +01:00
2018-02-03 17:39:15 +01:00
2017-09-25 18:22:30 -07:00
2017-08-22 09:22:24 -07:00
2017-02-16 17:20:12 -08:00
2017-02-09 10:50:25 -08:00
2017-04-25 09:40:42 -07:00
2018-05-09 09:51:52 +02:00
2017-10-16 12:26:50 -07:00
2017-04-03 15:18:17 -07:00
2018-06-05 11:41:55 +02:00
2017-06-19 14:11:33 -07:00
2017-06-19 08:59:10 -07:00
2018-08-09 12:16:39 +02:00
2017-06-19 14:11:34 -07:00
2017-10-11 10:21:06 -07:00
2018-02-03 17:39:06 +01:00
2017-07-02 22:46:13 -07:00
2017-04-03 15:18:17 -07:00
2017-06-19 14:11:33 -07:00
2018-07-11 16:29:22 +02:00
2017-06-19 14:11:33 -07:00
2017-09-26 10:55:19 -07:00
2017-09-26 10:55:19 -07:00
2018-07-11 16:29:22 +02:00
2017-06-19 14:11:34 -07:00
2017-06-19 14:11:34 -07:00
2017-09-12 20:02:22 -07:00
2017-08-04 13:43:36 -07:00
2017-06-19 14:11:33 -07:00
2018-02-03 17:39:06 +01:00
2017-10-11 10:21:06 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 08:59:10 -07:00
2017-11-02 11:10:55 +01:00
2017-10-11 10:21:06 -07:00
2018-06-05 11:41:55 +02:00
2017-10-11 10:21:06 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-19 14:11:33 -07:00
2017-04-28 08:11:08 -07:00
2018-03-03 10:24:33 +01:00
2017-07-17 08:45:34 +01:00
2018-02-03 17:39:06 +01:00
2018-02-03 17:39:06 +01:00
2017-10-03 21:27:55 -07:00
2017-06-19 14:11:35 -07:00
2017-04-25 09:40:42 -07:00
2017-09-01 10:55:30 -07:00
2017-06-19 14:11:34 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 14:11:33 -07:00
2018-07-11 16:29:22 +02:00
2017-02-09 11:36:40 -08:00
2017-09-01 10:55:30 -07:00
2017-06-20 10:45:22 -07:00
2017-06-19 08:59:10 -07:00
2017-06-27 18:23:21 -07:00
2017-04-03 15:18:17 -07:00
2018-06-05 11:41:55 +02:00
2017-08-22 09:22:24 -07:00
2017-06-19 08:59:10 -07:00
2017-09-01 10:55:30 -07:00
2017-09-01 10:55:30 -07:00
2017-08-22 09:22:23 -07:00
2017-06-19 14:11:33 -07:00
2017-09-01 10:55:30 -07:00
2017-09-01 10:55:30 -07:00
2016-12-05 12:32:14 +11:00
2017-06-19 08:59:10 -07:00