Bob Peterson
c4a9d1892f
GFS2: Fix non-recursive truncate bug
...
Before this patch if you truncated a file to a smaller size it
wasn't freeing all the blocks properly. There are two reasons.
First, the metapath comparison was not comparing previous heights.
I added a function, mp_eq_to_hgt, which checks the metapath at
all heights prior to the target height.
Second, in function find_nonnull_ptr, it needed to zero out all
pointers for heights following the target height. Translated into
decimal integer terms, this way a number like 299, when incremented,
becomes 300, not 399. The 2 gets incremented to 3, and the following
digits need to be reset.
These two things allow the truncate state machine to properly find
the blocks it needs to delete.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
2017-08-30 13:29:22 -05:00
..
2017-04-20 12:09:55 -06:00
2017-05-05 15:24:52 -04:00
2017-07-05 12:31:59 -07:00
2017-06-24 08:57:20 +02:00
2017-05-05 11:35:35 +01:00
2017-05-12 15:57:15 -07:00
2017-07-07 19:38:17 -07:00
2017-06-20 12:19:14 +02:00
2017-06-14 19:37:23 +02:00
2017-07-07 17:44:36 -07:00
2017-06-29 17:49:23 -04:00
2017-06-12 13:20:20 +02:00
2017-06-09 09:27:32 -06:00
2017-05-16 08:44:23 -03:00
2017-03-09 18:23:27 -08:00
2017-04-20 12:09:55 -06:00
2017-07-05 18:44:22 -04:00
2017-03-03 11:38:56 -08:00
2017-07-07 19:38:17 -07:00
2017-07-07 19:38:17 -07:00
2017-07-03 10:34:51 -07:00
2017-03-09 17:01:10 -08:00
2017-03-02 10:09:00 +11:00
2017-05-20 16:12:30 -07:00
2017-08-30 13:29:22 -05:00
2017-05-08 17:15:14 -07:00
2017-05-08 17:15:14 -07:00
2017-03-02 08:42:32 +01:00
2017-06-19 21:50:20 +08:00
2017-03-02 08:42:31 +01:00
2017-07-07 19:38:17 -07:00
2017-04-19 11:35:55 -07:00
2017-07-07 18:39:15 -07:00
2017-03-17 10:25:59 +09:00
2017-05-10 13:29:23 -07:00
2017-07-05 18:44:22 -04:00
2017-07-06 16:24:35 -07:00
2017-07-05 11:26:35 -07:00
2017-07-05 14:35:57 -07:00
2017-07-03 13:08:04 -07:00
2017-04-25 15:48:06 +02:00
2017-05-28 10:11:48 -07:00
2017-07-06 16:24:30 -07:00
2017-03-02 08:42:31 +01:00
2017-06-20 12:19:14 +02:00
2017-07-03 09:55:26 -07:00
2017-07-05 17:09:27 -07:00
2017-06-27 17:02:36 -07:00
2017-05-24 18:24:07 -04:00
2017-06-20 12:18:27 +02:00
2017-01-24 16:26:14 -08:00
2017-02-24 17:46:57 -08:00
2017-04-08 17:33:32 +02:00
2017-07-05 18:44:22 -04:00
2017-04-26 23:54:06 -04:00
2017-05-13 10:23:12 -07:00
2017-04-24 16:28:02 +02:00
2017-07-07 18:39:15 -07:00
2017-07-07 19:38:17 -07:00
2017-06-27 12:05:36 -06:00
2017-03-02 08:42:29 +01:00
2017-03-02 20:51:15 -05:00
2017-03-02 08:42:36 +01:00
2017-03-02 08:42:39 +01:00
2017-03-02 08:42:39 +01:00
2017-03-02 08:42:36 +01:00
2017-04-26 23:54:06 -04:00
2017-07-07 19:38:17 -07:00
2017-07-07 19:38:17 -07:00
2017-03-21 06:44:32 +01:00
2017-02-01 09:13:51 +01:00
2017-06-09 11:27:20 +02:00
2017-04-17 12:52:27 -04:00
2017-03-02 08:42:36 +01:00
2017-07-07 19:38:17 -07:00
2017-07-06 16:24:33 -07:00
2017-06-27 12:05:36 -06:00
2017-07-03 21:13:25 -07:00
2017-06-20 12:19:14 +02:00
2017-07-07 20:05:08 -07:00
2017-07-07 13:48:18 -07:00
2017-04-17 12:52:26 -04:00
2017-07-06 07:02:25 -04:00
2017-07-06 16:24:30 -07:00
2017-06-20 12:19:14 +02:00
2017-03-02 08:42:35 +01:00
2017-05-16 08:44:10 -03:00
2017-07-06 16:24:33 -07:00
2017-05-09 09:12:53 -07:00
2017-03-02 08:42:37 +01:00
2017-06-27 12:05:36 -06:00
2017-05-08 10:55:27 -07:00
2017-07-06 07:02:29 -04:00
2017-05-27 06:07:19 -04:00
2017-05-23 08:41:16 -05:00
2017-07-03 21:13:25 -07:00
2017-05-18 11:03:08 -06:00
2017-07-06 16:24:33 -07:00
2017-05-08 17:15:12 -07:00
2017-07-07 19:38:17 -07:00
2017-05-23 08:41:17 -05:00
2017-02-04 00:01:06 +13:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:38 +01:00
2017-07-05 14:35:57 -07:00
2017-04-17 12:52:24 -04:00
2017-07-06 20:57:13 -07:00
2017-05-08 17:15:12 -07:00
2017-06-20 12:18:27 +02:00
2017-06-29 17:49:23 -04:00
2017-06-09 16:28:01 -04:00
2017-06-04 13:51:34 -04:00
2017-04-20 12:09:55 -06:00
2017-07-05 18:44:23 -04:00
2017-06-30 04:14:38 -04:00
2017-07-06 16:24:34 -07:00
2017-04-17 12:52:23 -04:00
2017-05-08 17:15:13 -07:00