Add a "nosymfollow" mount option.
[linux-block.git] / fs / statfs.c
index 2616424012ea7bf4bc7f87a935466c74bb267397..59f33752c1311f040f351b4fae019e4a8ff5119c 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;
 }