diff options
-rw-r--r-- | fs/affs/affs.h | 1 | ||||
-rw-r--r-- | fs/affs/super.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 1fceb320d2f2..5a726e992245 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h | |||
@@ -100,6 +100,7 @@ struct affs_sb_info { | |||
100 | char *s_prefix; /* Prefix for volumes and assigns. */ | 100 | char *s_prefix; /* Prefix for volumes and assigns. */ |
101 | char s_volume[32]; /* Volume prefix for absolute symlinks. */ | 101 | char s_volume[32]; /* Volume prefix for absolute symlinks. */ |
102 | spinlock_t symlink_lock; /* protects the previous two */ | 102 | spinlock_t symlink_lock; /* protects the previous two */ |
103 | struct super_block *sb; /* the VFS superblock object */ | ||
103 | }; | 104 | }; |
104 | 105 | ||
105 | #define SF_INTL 0x0001 /* International filesystem. */ | 106 | #define SF_INTL 0x0001 /* International filesystem. */ |
diff --git a/fs/affs/super.c b/fs/affs/super.c index da7498da80a6..0496cbbeda1b 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -299,6 +299,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) | |||
299 | return -ENOMEM; | 299 | return -ENOMEM; |
300 | 300 | ||
301 | sb->s_fs_info = sbi; | 301 | sb->s_fs_info = sbi; |
302 | sbi->sb = sb; | ||
302 | mutex_init(&sbi->s_bmlock); | 303 | mutex_init(&sbi->s_bmlock); |
303 | spin_lock_init(&sbi->symlink_lock); | 304 | spin_lock_init(&sbi->symlink_lock); |
304 | 305 | ||