]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
affs: introduce VFS superblock object back-reference
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 6 Jun 2012 15:56:56 +0000 (18:56 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:32:45 +0000 (16:32 +0400)
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>
fs/affs/affs.h
fs/affs/super.c

index 1fceb320d2f22c16bc1a900cb27597d68977dbbd..5a726e9922454bdb107955d854dc1c2e26728280 100644 (file)
@@ -100,6 +100,7 @@ struct affs_sb_info {
        char *s_prefix;                 /* Prefix for volumes and assigns. */
        char s_volume[32];              /* Volume prefix for absolute symlinks. */
        spinlock_t symlink_lock;        /* protects the previous two */
+       struct super_block *sb;         /* the VFS superblock object */
 };
 
 #define SF_INTL                0x0001          /* International filesystem. */
index da7498da80a6325e1117a64f567106d86e1a5ed4..0496cbbeda1b47abd5d43d89817db2e7efeda19d 100644 (file)
@@ -299,6 +299,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
                return -ENOMEM;
 
        sb->s_fs_info = sbi;
+       sbi->sb = sb;
        mutex_init(&sbi->s_bmlock);
        spin_lock_init(&sbi->symlink_lock);