Tristan Ye
9a790ba1ec
ocfs2: skip existing hole when removing the last extent_rec in punching-hole codes.
...
In the case of removing a partial extent record which covers a hole, current
punching-hole logic will try to remove more than the length of whole extent
record, which leads to the failure of following assert(fs/ocfs2/alloc.c):
5507 BUG_ON(cpos < le32_to_cpu(rec->e_cpos) || trunc_range > rec_range);
This patch tries to skip existing hole at the last attempt of removing a partial
extent record, what's more, it also adds some necessary comments for better
understanding of punching-hole codes.
Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
2011-05-13 11:26:20 -07:00
..
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-17 14:02:57 +01:00
2011-03-28 13:03:31 -07:00
2011-01-07 17:50:29 +11:00
2011-03-31 11:26:23 -03:00
2011-01-07 18:03:00 -08:00
2011-03-28 13:03:31 -07:00
2011-03-31 11:26:23 -03:00
2010-09-08 14:25:53 +08:00
2009-06-03 19:15:36 -07:00
2011-02-24 16:22:20 +08:00
2009-09-04 16:07:48 -07:00
2011-03-10 03:45:07 -05:00
2010-09-10 09:18:15 -07:00
2011-05-13 11:26:15 -07:00
2009-04-03 11:39:16 -07:00
2011-03-28 09:44:26 -07:00
2010-09-10 09:19:06 -07:00
2011-03-14 09:15:28 -04:00
2011-02-22 22:27:33 +08:00
2009-09-22 20:09:39 -07:00
2011-05-13 11:26:20 -07:00
2011-01-07 17:50:29 +11:00
2011-02-23 21:17:39 +08:00
2008-04-18 08:56:04 -07:00
2011-03-31 11:26:23 -03:00
2010-09-10 09:18:15 -07:00
2011-03-28 13:03:31 -07:00
2010-03-02 14:10:20 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-01-16 21:22:40 +00:00
2011-03-07 16:43:21 +08:00
2010-05-05 18:18:07 -07:00
2011-02-21 11:18:23 +08:00
2008-10-13 13:57:57 -07:00
2011-03-17 14:02:57 +01:00
2011-02-22 21:59:46 +08:00
2011-03-31 11:26:23 -03:00
2009-09-22 20:09:48 -07:00
2008-02-03 17:33:42 +02:00
2011-04-26 23:31:11 -07:00
2010-10-15 13:03:09 -07:00
2009-09-22 20:09:28 -07:00
2010-02-26 15:41:18 -08:00
2011-02-24 16:22:20 +08:00
2011-03-28 13:03:31 -07:00
2011-03-31 11:26:23 -03:00
2011-02-23 22:12:48 +08:00
2011-02-01 11:42:42 +01:00
2011-03-28 13:03:31 -07:00
2010-09-10 08:41:04 -07:00
2011-02-23 22:10:56 +08:00
2011-03-31 11:26:23 -03:00
2011-02-22 08:24:01 +08:00
2008-01-25 15:04:24 -08:00
2011-02-22 22:29:08 +08:00
2008-04-18 08:56:03 -07:00
2010-10-06 17:55:29 -07:00
2010-11-18 15:41:41 -08:00
2010-02-26 15:41:18 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-09-08 14:25:59 +08:00
2011-03-31 11:26:23 -03:00
2010-05-10 11:50:10 -07:00
2011-03-07 16:43:21 +08:00
2011-02-22 22:14:41 +08:00
2011-02-24 16:22:20 +08:00
2009-09-04 16:07:50 -07:00
2008-01-25 15:05:46 -08:00
2011-03-31 11:26:23 -03:00
2011-02-01 11:12:29 -05:00