Skip to contentSkip to conversation

GFS2: Add initialization for address space in super block

Cluster-devel Steven Whitehouse 1 participant 1 message Jan 9, 2014 GFS2 file system

lore
Share & tools
lore
#0 lore raw

From 39849d6946a84861a517c09ca0b691ce6d98c7a6 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Thu, 9 Jan 2014 16:34:04 +0000
Subject: GFS2: Add initialization for address space in super block

Spotted by Andy Price. This should fix the odd messages from lockdep caused by 70d4ee94b370c5ef54d0870600f16bd92d18013c

fs/gfs2/ops_fstype.c +1 -0
index 94aab31..3b820b6 100644
@@ -102,6 +102,7 @@ static struct gfs2_sbd *init_sbd(struct super_block *sb)
 
 	mapping = &sdp->sd_aspace;
 
+	address_space_init_once(mapping);
 	mapping->a_ops = &gfs2_meta_aops;
 	mapping->host = sb->s_bdev->bd_inode;
 	mapping->flags = 0;
Signature · 1 line
1.8.3.1