stat.c (c9f289701540baeef9ac7c9977d67a7259f404db) stat.c (712b2698e4c024b561694cbcc1abba13eb0fd9ce)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/stat.c
4 *
5 * Copyright (C) 1991, 1992 Linus Torvalds
6 */
7
8#include <linux/export.h>

--- 65 unchanged lines hidden (view full) ---

74 query_flags &= KSTAT_QUERY_FLAGS;
75
76 /* allow the fs to override these if it really wants to */
77 if (IS_NOATIME(inode))
78 stat->result_mask &= ~STATX_ATIME;
79 if (IS_AUTOMOUNT(inode))
80 stat->attributes |= STATX_ATTR_AUTOMOUNT;
81
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/stat.c
4 *
5 * Copyright (C) 1991, 1992 Linus Torvalds
6 */
7
8#include <linux/export.h>

--- 65 unchanged lines hidden (view full) ---

74 query_flags &= KSTAT_QUERY_FLAGS;
75
76 /* allow the fs to override these if it really wants to */
77 if (IS_NOATIME(inode))
78 stat->result_mask &= ~STATX_ATIME;
79 if (IS_AUTOMOUNT(inode))
80 stat->attributes |= STATX_ATTR_AUTOMOUNT;
81
82 if (IS_DAX(inode))
83 stat->attributes |= STATX_ATTR_DAX;
84
82 if (inode->i_op->getattr)
83 return inode->i_op->getattr(path, stat, request_mask,
84 query_flags);
85
86 generic_fillattr(inode, stat);
87 return 0;
88}
89EXPORT_SYMBOL(vfs_getattr_nosec);

--- 661 unchanged lines hidden ---
85 if (inode->i_op->getattr)
86 return inode->i_op->getattr(path, stat, request_mask,
87 query_flags);
88
89 generic_fillattr(inode, stat);
90 return 0;
91}
92EXPORT_SYMBOL(vfs_getattr_nosec);

--- 661 unchanged lines hidden ---