patch-2.4.27 linux-2.4.27/fs/reiserfs/journal.c
Next file: linux-2.4.27/fs/stat.c
Previous file: linux-2.4.27/fs/proc/proc_misc.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
2004-08-07 16:26:06.018402824 -0700
- Orig file:
linux-2.4.26/fs/reiserfs/journal.c
- Orig date:
2003-08-25 04:44:43.000000000 -0700
diff -urN linux-2.4.26/fs/reiserfs/journal.c linux-2.4.27/fs/reiserfs/journal.c
@@ -198,6 +198,9 @@
static void cleanup_bitmap_list(struct super_block *p_s_sb,
struct reiserfs_list_bitmap *jb) {
int i;
+ if (jb->bitmaps == NULL)
+ return ;
+
for (i = 0 ; i < SB_BMAP_NR(p_s_sb) ; i++) {
if (jb->bitmaps[i]) {
free_bitmap_node(p_s_sb, jb->bitmaps[i]) ;
@@ -2064,8 +2067,11 @@
INIT_LIST_HEAD(&SB_JOURNAL(p_s_sb)->j_bitmap_nodes) ;
INIT_LIST_HEAD (&SB_JOURNAL(p_s_sb)->j_prealloc_list);
- reiserfs_allocate_list_bitmaps(p_s_sb, SB_JOURNAL(p_s_sb)->j_list_bitmap,
- SB_BMAP_NR(p_s_sb)) ;
+ if (reiserfs_allocate_list_bitmaps(p_s_sb,
+ SB_JOURNAL(p_s_sb)->j_list_bitmap,
+ SB_BMAP_NR(p_s_sb)))
+ goto free_and_return ;
+
allocate_bitmap_nodes(p_s_sb) ;
/* reserved for journal area support */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)