Abhi Das
959b671717
gfs2: handle NULL rgd in set_rgrp_preferences
...
The function set_rgrp_preferences() does not handle the (rarely
returned) NULL value from gfs2_rgrpd_get_next() and this patch
fixes that.
The fs image in question is only 150MB in size which allows for
only 1 rgrp to be created. The in-memory rb tree has only 1 node
and when gfs2_rgrpd_get_next() is called on this sole rgrp, it
returns NULL. (Default behavior is to wrap around the rb tree and
return the first node to give the illusion of a circular linked
list. In the case of only 1 rgrp, we can't have
gfs2_rgrpd_get_next() return the same rgrp (first, last, next all
point to the same rgrp)... that would cause unintended consequences
and infinite loops.)
Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
2015-05-05 11:26:04 -05:00
..
2015-04-11 22:24:41 -04:00
2015-04-14 15:31:03 -07:00
2015-03-25 20:28:11 -04:00
2015-02-22 11:43:34 -05:00
2015-02-17 14:34:50 -08:00
2015-03-25 20:28:11 -04:00
2015-04-11 22:24:41 -04:00
2015-02-22 11:38:41 -05:00
2015-04-11 22:24:41 -04:00
2015-04-14 16:49:06 -07:00
2015-02-22 11:38:41 -05:00
2015-02-20 04:56:43 -05:00
2015-04-03 16:30:12 +02:00
2015-01-18 01:03:45 -05:00
2015-04-11 22:24:41 -04:00
2015-01-29 19:16:40 +01:00
2015-02-16 17:56:03 -08:00
2015-02-22 11:38:41 -05:00
2015-03-25 20:28:11 -04:00
2015-03-25 20:28:11 -04:00
2015-04-11 22:24:41 -04:00
2015-03-25 20:28:11 -04:00
2015-03-25 20:28:11 -04:00
2015-04-11 22:24:41 -04:00
2015-05-05 11:26:04 -05:00
2015-03-25 20:28:11 -04:00
2015-04-14 15:31:03 -07:00
2015-02-22 11:38:41 -05:00
2015-04-14 16:49:01 -07:00
2015-01-19 15:59:58 -05:00
2015-04-14 09:50:27 -07:00
2015-04-14 16:04:26 -07:00
2015-03-16 21:51:20 +01:00
2015-02-12 10:39:41 -08:00
2015-02-17 14:56:45 -08:00
2015-04-14 16:49:17 -07:00
2015-03-30 16:05:26 -04:00
2015-04-11 22:24:41 -04:00
2015-03-12 18:46:08 -07:00
2015-04-11 22:24:41 -04:00
2015-04-14 16:49:17 -07:00
2015-03-18 10:29:48 +01:00
2015-03-17 09:31:30 -07:00
2015-03-16 11:14:10 -07:00
2015-02-10 15:52:38 -08:00
2015-01-20 14:03:05 -07:00
2015-04-11 22:24:41 -04:00
2015-01-20 14:03:05 -07:00
2015-03-25 13:27:57 +01:00
2015-02-03 12:48:43 -05:00
2015-03-25 20:28:11 -04:00
2015-03-25 20:28:11 -04:00
2015-02-17 14:34:51 -08:00
2015-04-11 22:24:41 -04:00
2015-04-14 15:31:03 -07:00
2015-02-20 04:03:58 -05:00
2015-04-14 16:49:05 -07:00
2015-03-25 20:28:11 -04:00
2015-04-14 16:49:01 -07:00
2015-01-20 14:02:58 -07:00
2015-03-06 23:10:29 +01:00
2015-02-16 17:56:04 -08:00
2015-04-11 22:24:33 -04:00
2015-03-25 20:28:11 -04:00
2015-02-12 18:54:09 -08:00
2015-02-17 14:34:52 -08:00
2015-02-13 21:21:40 -08:00
2015-01-23 00:22:20 -05:00
2015-01-08 15:10:52 -08:00
2015-01-25 23:17:29 -05:00
2015-03-17 12:23:32 -04:00
2015-02-17 16:12:34 -08:00
2015-02-22 11:38:42 -05:00
2015-02-10 14:30:30 -08:00
2015-02-16 17:56:04 -08:00
2015-04-14 16:49:05 -07:00
2015-02-22 11:38:41 -05:00
2015-03-27 07:18:20 -04:00
2015-04-14 10:22:29 -07:00
2015-01-25 23:17:29 -05:00
2015-04-11 22:24:30 -04:00
2015-02-22 11:38:41 -05:00
2015-04-11 22:24:34 -04:00
2015-03-25 20:28:11 -04:00
2015-02-22 11:38:41 -05:00
2015-02-05 02:45:00 -05:00
2015-04-11 22:27:12 -04:00
2015-02-12 18:54:12 -08:00
2015-02-13 21:21:39 -08:00
2015-04-11 22:27:11 -04:00
2015-04-11 22:24:32 -04:00
2015-04-14 16:49:03 -07:00
2015-02-05 02:45:00 -05:00