Skip to content

Commit a215fef

Browse files
dedekindAl Viro
authored andcommitted
affs: introduce VFS superblock object back-reference
Add an 'sb' VFS superblock back-reference to the 'struct affs_sb_info' data structure - we will need to find the VFS superblock from a 'struct affs_sb_info' object in the next patch, so this change is jut a preparation. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent a837107 commit a215fef

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/affs/affs.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ struct affs_sb_info {
100100
char *s_prefix; /* Prefix for volumes and assigns. */
101101
char s_volume[32]; /* Volume prefix for absolute symlinks. */
102102
spinlock_t symlink_lock; /* protects the previous two */
103+
struct super_block *sb; /* the VFS superblock object */
103104
};
104105

105106
#define SF_INTL 0x0001 /* International filesystem. */

‎fs/affs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
299299
return -ENOMEM;
300300

301301
sb->s_fs_info = sbi;
302+
sbi->sb = sb;
302303
mutex_init(&sbi->s_bmlock);
303304
spin_lock_init(&sbi->symlink_lock);
304305

0 commit comments

Comments
 (0)