Lines Matching refs:sb
43 static int nfs_superblock_set_dummy_root(struct super_block *sb, struct inode *inode) in nfs_superblock_set_dummy_root() argument
46 if (sb->s_root == NULL) { in nfs_superblock_set_dummy_root()
47 sb->s_root = d_make_root(inode); in nfs_superblock_set_dummy_root()
48 if (sb->s_root == NULL) in nfs_superblock_set_dummy_root()
59 spin_lock(&d_inode(sb->s_root)->i_lock); in nfs_superblock_set_dummy_root()
60 spin_lock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root()
61 hlist_del_init(&sb->s_root->d_u.d_alias); in nfs_superblock_set_dummy_root()
62 spin_unlock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root()
63 spin_unlock(&d_inode(sb->s_root)->i_lock); in nfs_superblock_set_dummy_root()
71 struct dentry *nfs_get_root(struct super_block *sb, struct nfs_fh *mntfh, in nfs_get_root() argument
74 struct nfs_server *server = NFS_SB(sb); in nfs_get_root()
98 inode = nfs_fhget(sb, mntfh, fsinfo.fattr, NULL); in nfs_get_root()
105 error = nfs_superblock_set_dummy_root(sb, inode); in nfs_get_root()