block: remove i_bdev
[linux-2.6-microblaze.git] / fs / statfs.c
index 2616424..68cb077 100644 (file)
@@ -29,6 +29,8 @@ static int flags_by_mnt(int mnt_flags)
                flags |= ST_NODIRATIME;
        if (mnt_flags & MNT_RELATIME)
                flags |= ST_RELATIME;
+       if (mnt_flags & MNT_NOSYMFOLLOW)
+               flags |= ST_NOSYMFOLLOW;
        return flags;
 }
 
@@ -233,7 +235,7 @@ SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user
 
 static int vfs_ustat(dev_t dev, struct kstatfs *sbuf)
 {
-       struct super_block *s = user_get_super(dev);
+       struct super_block *s = user_get_super(dev, false);
        int err;
        if (!s)
                return -EINVAL;