]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/sparc64/solaris/fs.c
[PATCH] VFS: Permit filesystem to perform statfs with a known root dentry
[mirror_ubuntu-jammy-kernel.git] / arch / sparc64 / solaris / fs.c
index 4885ca6cbc777dc2cf0623650db158cc0a5772a8..0f0eb6aa1c401523c9af9fe00057884c00ff3e6f 100644 (file)
@@ -356,7 +356,7 @@ static int report_statvfs(struct vfsmount *mnt, struct inode *inode, u32 buf)
        int error;
        struct sol_statvfs __user *ss = A(buf);
 
-       error = vfs_statfs(mnt->mnt_sb, &s);
+       error = vfs_statfs(mnt->mnt_root, &s);
        if (!error) {
                const char *p = mnt->mnt_sb->s_type->name;
                int i = 0;
@@ -392,7 +392,7 @@ static int report_statvfs64(struct vfsmount *mnt, struct inode *inode, u32 buf)
        int error;
        struct sol_statvfs64 __user *ss = A(buf);
                        
-       error = vfs_statfs(mnt->mnt_sb, &s);
+       error = vfs_statfs(mnt->mnt_root, &s);
        if (!error) {
                const char *p = mnt->mnt_sb->s_type->name;
                int i = 0;