]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - fs/xfs/linux-2.6/xfs_super.c
[XFS] Avoid directly referencing the VFS inode.
[mirror_ubuntu-jammy-kernel.git] / fs / xfs / linux-2.6 / xfs_super.c
index 30ae96397e318854ab0eb93ecc124916e04bfde5..b49722940d6d748856c0ae7cdf69b39951b6b53c 100644 (file)
@@ -1106,7 +1106,7 @@ void
 xfs_flush_inode(
        xfs_inode_t     *ip)
 {
-       struct inode    *inode = ip->i_vnode;
+       struct inode    *inode = VFS_I(ip);
 
        igrab(inode);
        xfs_syncd_queue_work(ip->i_mount, inode, xfs_flush_inode_work);
@@ -1825,7 +1825,7 @@ xfs_fs_fill_super(
        sb->s_time_gran = 1;
        set_posix_acl_flag(sb);
 
-       root = igrab(mp->m_rootip->i_vnode);
+       root = igrab(VFS_I(mp->m_rootip));
        if (!root) {
                error = ENOENT;
                goto fail_unmount;