Darrick J. Wong
363e59baa4
xfs: don't be so eager to clear the cowblocks tag on truncate
...
Currently, xfs_itruncate_extents clears the cowblocks tag if i_cnextents
is zero. This is wrong, since i_cnextents only tracks real extents in
the CoW fork, which means that we could have some delayed CoW
reservations still in there that will now never get cleaned.
Fix a further bug where we /don't/ clear the reflink iflag if there are
any attribute blocks -- really, it's only safe to clear the reflink flag
if there are no data fork extents and no cow fork extents.
Found by adding clonerange to fsstress in xfs/017.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2017-12-21 08:47:28 -08:00
..
2017-12-14 09:20:11 -08:00
2017-12-08 17:51:05 -08:00
2017-10-26 15:38:23 -07:00
2017-05-08 17:15:13 -07:00
2017-11-15 18:21:01 -08:00
2017-11-06 11:53:41 -08:00
2013-05-07 18:45:36 -05:00
2017-10-11 10:21:06 -07:00
2017-06-27 18:23:21 -07:00
2017-11-30 08:43:52 -08:00
2017-08-31 09:31:47 -07:00
2017-10-26 15:38:22 -07:00
2017-11-09 15:50:29 -08:00
2017-10-26 15:38:26 -07:00
2017-11-27 09:34:08 -08:00
2017-11-27 09:34:08 -08:00
2017-11-06 11:53:40 -08:00
2017-10-26 15:38:20 -07:00
2017-09-02 08:22:19 -07:00
2017-09-01 10:55:30 -07:00
2017-11-28 08:57:11 -08:00
2017-10-26 15:38:23 -07:00
2017-11-06 11:53:40 -08:00
2017-06-19 14:11:33 -07:00
2017-11-02 11:10:55 +01:00
2017-11-30 08:47:40 -08:00
2013-12-13 11:34:08 +11:00
2017-11-30 08:47:40 -08:00
2015-01-09 10:48:58 +11:00
2017-11-06 11:57:39 -08:00
2017-11-01 15:03:16 -07:00
2016-07-15 15:31:29 -04:00
2011-08-12 16:21:35 -05: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
2016-08-03 11:23:49 +10:00
2017-11-17 09:51:57 -08:00
2016-10-03 09:56:28 +11:00
2014-04-23 07:11:52 +10:00
2017-10-16 12:26:50 -07:00
2017-04-03 15:18:17 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 08:59:10 -07:00
2017-12-20 17:11:48 -08:00
2017-06-19 14:11:34 -07:00
2016-11-28 14:57:42 +11:00
2013-08-12 16:10:35 -05:00
2017-11-06 11:53:41 -08:00
2017-11-01 15:03:16 -07:00
2017-12-21 08:47:28 -08:00
2017-12-20 17:11:48 -08:00
2017-10-26 15:38:23 -07:00
2017-06-19 14:11:33 -07:00
2017-11-09 15:50:29 -08:00
2017-11-09 15:50:29 -08:00
2017-12-08 17:51:05 -08:00
2017-09-26 10:55:19 -07:00
2017-11-03 09:45:56 -07:00
2016-09-22 10:56:19 +02:00
2017-10-26 15:38:27 -07:00
2017-10-26 15:38:23 -07:00
2017-11-21 01:44:53 -08:00
2017-08-04 13:43:36 -07:00
2017-10-25 11:01:08 +02:00
2017-11-27 09:34:08 -08:00
2017-11-06 11:57:39 -08: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-11-09 19:27:33 -08:00
2017-06-27 18:23:20 -07:00
2015-03-25 14:57:53 +11:00
2014-04-23 07:11:51 +10: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
2017-12-08 17:51:05 -08:00
2016-02-08 11:27:55 +11:00
2015-06-01 07:15:37 +10:00
2017-07-17 08:45:34 +01:00
2017-11-27 09:34:08 -08:00
2017-11-27 09:34:08 -08:00
2017-12-14 09:20:11 -08:00
2017-06-19 14:11:35 -07:00
2017-04-25 09:40:42 -07:00
2016-09-19 10:24:27 +10:00
2017-09-01 10:55:30 -07:00
2017-10-26 15:38:23 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 14:11:33 -07:00
2017-10-18 18:51:27 -04:00
2017-02-09 11:36:40 -08:00
2017-12-08 17:51:05 -08:00
2017-06-20 10:45:22 -07:00
2016-10-05 16:26:28 -07:00
2017-06-19 08:59:10 -07:00
2017-06-27 18:23:21 -07:00
2016-05-18 10:58:51 +10:00
2017-12-08 17:51:05 -08:00
2017-11-17 09:51:57 -08:00
2017-11-01 15:03:16 -07:00
2017-06-19 08:59:10 -07:00
2017-09-01 10:55:30 -07:00
2016-02-08 11:27:55 +11:00
2016-09-19 10:30:52 +10:00
2017-09-01 10:55:30 -07:00
2017-08-22 09:22:23 -07:00
2016-10-03 09:11:22 -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-11-06 11:53:58 -08:00