512 lines
17 KiB
Diff
512 lines
17 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tyler Smith <74526874+tylertms@users.noreply.github.com>
|
|
Date: Tue, 3 Nov 2026 04:45:39 +0000
|
|
Subject: [PATCH] refactor(fs): separate inode metadata and version accounting
|
|
|
|
---
|
|
fs/anon_inodes.c | 34 -------
|
|
fs/libfs.c | 100 -------------------
|
|
fs/pseudo_metadata.c | 223 +++++++++++++++++++++++++++++++++++++++++++
|
|
fs/stat.c | 85 -----------------
|
|
4 files changed, 223 insertions(+), 219 deletions(-)
|
|
|
|
diff --git a/fs/anon_inodes.c b/fs/anon_inodes.c
|
|
index a7b9b948e33d1126563c84497ffa3df34b33ac56..40617574b0d8eefeb85950b7f3b56610f319c4d5 100644
|
|
--- a/fs/anon_inodes.c
|
|
+++ b/fs/anon_inodes.c
|
|
@@ -29,40 +29,6 @@
|
|
static struct vfsmount *anon_inode_mnt __ro_after_init;
|
|
static struct inode *anon_inode_inode __ro_after_init;
|
|
|
|
-/*
|
|
- * User space expects anonymous inodes to have no file type in st_mode.
|
|
- *
|
|
- * In particular, 'lsof' has this legacy logic:
|
|
- *
|
|
- * type = s->st_mode & S_IFMT;
|
|
- * switch (type) {
|
|
- * ...
|
|
- * case 0:
|
|
- * if (!strcmp(p, "anon_inode"))
|
|
- * Lf->ntype = Ntype = N_ANON_INODE;
|
|
- *
|
|
- * to detect our old anon_inode logic.
|
|
- *
|
|
- * Rather than mess with our internal sane inode data, just fix it
|
|
- * up here in getattr() by masking off the format bits.
|
|
- */
|
|
-int anon_inode_getattr(struct mnt_idmap *idmap, const struct path *path,
|
|
- struct kstat *stat, u32 request_mask,
|
|
- unsigned int query_flags)
|
|
-{
|
|
- struct inode *inode = d_inode(path->dentry);
|
|
-
|
|
- generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat);
|
|
- stat->mode &= ~S_IFMT;
|
|
- return 0;
|
|
-}
|
|
-
|
|
-int anon_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
|
|
- struct iattr *attr)
|
|
-{
|
|
- return -EOPNOTSUPP;
|
|
-}
|
|
-
|
|
static const struct inode_operations anon_inode_operations = {
|
|
.getattr = anon_inode_getattr,
|
|
.setattr = anon_inode_setattr,
|
|
diff --git a/fs/libfs.c b/fs/libfs.c
|
|
index 49222d977a8ae6e9bd7f2c38c7a36ccafda85d74..7c76ba17da809e83ef11dea0806fd1303619c06e 100644
|
|
--- a/fs/libfs.c
|
|
+++ b/fs/libfs.c
|
|
@@ -29,17 +29,6 @@
|
|
|
|
#include "internal.h"
|
|
|
|
-int simple_getattr(struct mnt_idmap *idmap, const struct path *path,
|
|
- struct kstat *stat, u32 request_mask,
|
|
- unsigned int query_flags)
|
|
-{
|
|
- struct inode *inode = d_inode(path->dentry);
|
|
- generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat);
|
|
- stat->blocks = inode->i_mapping->nrpages << (PAGE_SHIFT - 9);
|
|
- return 0;
|
|
-}
|
|
-EXPORT_SYMBOL(simple_getattr);
|
|
-
|
|
/*
|
|
* Retaining negative dentries for an in-memory filesystem just wastes
|
|
* memory and lookup time: arrange for them to be deleted immediately.
|
|
@@ -1969,95 +1958,6 @@ void generic_set_sb_d_ops(struct super_block *sb)
|
|
}
|
|
EXPORT_SYMBOL(generic_set_sb_d_ops);
|
|
|
|
-/**
|
|
- * inode_maybe_inc_iversion - increments i_version
|
|
- * @inode: inode with the i_version that should be updated
|
|
- * @force: increment the counter even if it's not necessary?
|
|
- *
|
|
- * Every time the inode is modified, the i_version field must be seen to have
|
|
- * changed by any observer.
|
|
- *
|
|
- * If "force" is set or the QUERIED flag is set, then ensure that we increment
|
|
- * the value, and clear the queried flag.
|
|
- *
|
|
- * In the common case where neither is set, then we can return "false" without
|
|
- * updating i_version.
|
|
- *
|
|
- * If this function returns false, and no other metadata has changed, then we
|
|
- * can avoid logging the metadata.
|
|
- */
|
|
-bool inode_maybe_inc_iversion(struct inode *inode, bool force)
|
|
-{
|
|
- u64 cur, new;
|
|
-
|
|
- /*
|
|
- * The i_version field is not strictly ordered with any other inode
|
|
- * information, but the legacy inode_inc_iversion code used a spinlock
|
|
- * to serialize increments.
|
|
- *
|
|
- * We add a full memory barrier to ensure that any de facto ordering
|
|
- * with other state is preserved (either implicitly coming from cmpxchg
|
|
- * or explicitly from smp_mb if we don't know upfront if we will execute
|
|
- * the former).
|
|
- *
|
|
- * These barriers pair with inode_query_iversion().
|
|
- */
|
|
- cur = inode_peek_iversion_raw(inode);
|
|
- if (!force && !(cur & I_VERSION_QUERIED)) {
|
|
- smp_mb();
|
|
- cur = inode_peek_iversion_raw(inode);
|
|
- }
|
|
-
|
|
- do {
|
|
- /* If flag is clear then we needn't do anything */
|
|
- if (!force && !(cur & I_VERSION_QUERIED))
|
|
- return false;
|
|
-
|
|
- /* Since lowest bit is flag, add 2 to avoid it */
|
|
- new = (cur & ~I_VERSION_QUERIED) + I_VERSION_INCREMENT;
|
|
- } while (!atomic64_try_cmpxchg(&inode->i_version, &cur, new));
|
|
- return true;
|
|
-}
|
|
-EXPORT_SYMBOL(inode_maybe_inc_iversion);
|
|
-
|
|
-/**
|
|
- * inode_query_iversion - read i_version for later use
|
|
- * @inode: inode from which i_version should be read
|
|
- *
|
|
- * Read the inode i_version counter. This should be used by callers that wish
|
|
- * to store the returned i_version for later comparison. This will guarantee
|
|
- * that a later query of the i_version will result in a different value if
|
|
- * anything has changed.
|
|
- *
|
|
- * In this implementation, we fetch the current value, set the QUERIED flag and
|
|
- * then try to swap it into place with a cmpxchg, if it wasn't already set. If
|
|
- * that fails, we try again with the newly fetched value from the cmpxchg.
|
|
- */
|
|
-u64 inode_query_iversion(struct inode *inode)
|
|
-{
|
|
- u64 cur, new;
|
|
- bool fenced = false;
|
|
-
|
|
- /*
|
|
- * Memory barriers (implicit in cmpxchg, explicit in smp_mb) pair with
|
|
- * inode_maybe_inc_iversion(), see that routine for more details.
|
|
- */
|
|
- cur = inode_peek_iversion_raw(inode);
|
|
- do {
|
|
- /* If flag is already set, then no need to swap */
|
|
- if (cur & I_VERSION_QUERIED) {
|
|
- if (!fenced)
|
|
- smp_mb();
|
|
- break;
|
|
- }
|
|
-
|
|
- fenced = true;
|
|
- new = cur | I_VERSION_QUERIED;
|
|
- } while (!atomic64_try_cmpxchg(&inode->i_version, &cur, new));
|
|
- return cur >> I_VERSION_QUERIED_SHIFT;
|
|
-}
|
|
-EXPORT_SYMBOL(inode_query_iversion);
|
|
-
|
|
ssize_t direct_write_fallback(struct kiocb *iocb, struct iov_iter *iter,
|
|
ssize_t direct_written, ssize_t buffered_written)
|
|
{
|
|
diff --git a/fs/pseudo_metadata.c b/fs/pseudo_metadata.c
|
|
index 34d8aa8d6c514f82e94f8109f853e30f4bb12400..6404b953e6293c99c225c300730ba3bbc1bcdbf0 100644
|
|
--- a/fs/pseudo_metadata.c
|
|
+++ b/fs/pseudo_metadata.c
|
|
@@ -2,8 +2,12 @@
|
|
/* Simple pseudo-filesystem metadata from fs/d_path.c and fs/libfs.c. */
|
|
#include <linux/export.h>
|
|
#include <linux/fs.h>
|
|
+#include <linux/iversion.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/statfs.h>
|
|
+#include <trace/events/timestamp.h>
|
|
+
|
|
+#include "internal.h"
|
|
|
|
int simple_statfs(struct dentry *dentry, struct kstatfs *buf)
|
|
{
|
|
@@ -37,3 +41,222 @@ char *dynamic_dname(char *buffer, int buflen, const char *fmt, ...)
|
|
start = buffer + (buflen - sz);
|
|
return memmove(start, buffer, sz);
|
|
}
|
|
+
|
|
+/**
|
|
+ * fill_mg_cmtime - Fill in the mtime and ctime and flag ctime as QUERIED
|
|
+ * @stat: where to store the resulting values
|
|
+ * @request_mask: STATX_* values requested
|
|
+ * @inode: inode from which to grab the c/mtime
|
|
+ *
|
|
+ * Given @inode, grab the ctime and mtime out if it and store the result
|
|
+ * in @stat. When fetching the value, flag it as QUERIED (if not already)
|
|
+ * so the next write will record a distinct timestamp.
|
|
+ *
|
|
+ * NB: The QUERIED flag is tracked in the ctime, but we set it there even
|
|
+ * if only the mtime was requested, as that ensures that the next mtime
|
|
+ * change will be distinct.
|
|
+ */
|
|
+void fill_mg_cmtime(struct kstat *stat, u32 request_mask, struct inode *inode)
|
|
+{
|
|
+ atomic_t *pcn = (atomic_t *)&inode->i_ctime_nsec;
|
|
+
|
|
+ /* If neither time was requested, then don't report them */
|
|
+ if (!(request_mask & (STATX_CTIME|STATX_MTIME))) {
|
|
+ stat->result_mask &= ~(STATX_CTIME|STATX_MTIME);
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ stat->mtime = inode_get_mtime(inode);
|
|
+ stat->ctime.tv_sec = inode_get_ctime_sec(inode);
|
|
+ stat->ctime.tv_nsec = (u32)atomic_read(pcn);
|
|
+ if (!(stat->ctime.tv_nsec & I_CTIME_QUERIED))
|
|
+ stat->ctime.tv_nsec = ((u32)atomic_fetch_or(I_CTIME_QUERIED, pcn));
|
|
+ stat->ctime.tv_nsec &= ~I_CTIME_QUERIED;
|
|
+ trace_fill_mg_cmtime(inode, &stat->ctime, &stat->mtime);
|
|
+}
|
|
+EXPORT_SYMBOL(fill_mg_cmtime);
|
|
+
|
|
+/**
|
|
+ * generic_fillattr - Fill in the basic attributes from the inode struct
|
|
+ * @idmap: idmap of the mount the inode was found from
|
|
+ * @request_mask: statx request_mask
|
|
+ * @inode: Inode to use as the source
|
|
+ * @stat: Where to fill in the attributes
|
|
+ *
|
|
+ * Fill in the basic attributes in the kstat structure from data that's to be
|
|
+ * found on the VFS inode structure. This is the default if no getattr inode
|
|
+ * operation is supplied.
|
|
+ *
|
|
+ * If the inode has been found through an idmapped mount the idmap of
|
|
+ * the vfsmount must be passed through @idmap. This function will then
|
|
+ * take care to map the inode according to @idmap before filling in the
|
|
+ * uid and gid filds. On non-idmapped mounts or if permission checking is to be
|
|
+ * performed on the raw inode simply pass @nop_mnt_idmap.
|
|
+ */
|
|
+void generic_fillattr(struct mnt_idmap *idmap, u32 request_mask,
|
|
+ struct inode *inode, struct kstat *stat)
|
|
+{
|
|
+ vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode);
|
|
+ vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode);
|
|
+
|
|
+ stat->dev = inode->i_sb->s_dev;
|
|
+ stat->ino = inode->i_ino;
|
|
+ stat->mode = inode->i_mode;
|
|
+ stat->nlink = inode->i_nlink;
|
|
+ stat->uid = vfsuid_into_kuid(vfsuid);
|
|
+ stat->gid = vfsgid_into_kgid(vfsgid);
|
|
+ stat->rdev = inode->i_rdev;
|
|
+ stat->size = i_size_read(inode);
|
|
+ stat->atime = inode_get_atime(inode);
|
|
+
|
|
+ if (is_mgtime(inode)) {
|
|
+ fill_mg_cmtime(stat, request_mask, inode);
|
|
+ } else {
|
|
+ stat->ctime = inode_get_ctime(inode);
|
|
+ stat->mtime = inode_get_mtime(inode);
|
|
+ }
|
|
+
|
|
+ stat->blksize = i_blocksize(inode);
|
|
+ stat->blocks = inode->i_blocks;
|
|
+
|
|
+ if ((request_mask & STATX_CHANGE_COOKIE) && IS_I_VERSION(inode)) {
|
|
+ stat->result_mask |= STATX_CHANGE_COOKIE;
|
|
+ stat->change_cookie = inode_query_iversion(inode);
|
|
+ }
|
|
+
|
|
+}
|
|
+EXPORT_SYMBOL(generic_fillattr);
|
|
+
|
|
+int simple_getattr(struct mnt_idmap *idmap, const struct path *path,
|
|
+ struct kstat *stat, u32 request_mask,
|
|
+ unsigned int query_flags)
|
|
+{
|
|
+ struct inode *inode = d_inode(path->dentry);
|
|
+ generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat);
|
|
+ stat->blocks = inode->i_mapping->nrpages << (PAGE_SHIFT - 9);
|
|
+ return 0;
|
|
+}
|
|
+EXPORT_SYMBOL(simple_getattr);
|
|
+
|
|
+/*
|
|
+ * User space expects anonymous inodes to have no file type in st_mode.
|
|
+ *
|
|
+ * In particular, 'lsof' has this legacy logic:
|
|
+ *
|
|
+ * type = s->st_mode & S_IFMT;
|
|
+ * switch (type) {
|
|
+ * ...
|
|
+ * case 0:
|
|
+ * if (!strcmp(p, "anon_inode"))
|
|
+ * Lf->ntype = Ntype = N_ANON_INODE;
|
|
+ *
|
|
+ * to detect our old anon_inode logic.
|
|
+ *
|
|
+ * Rather than mess with our internal sane inode data, just fix it
|
|
+ * up here in getattr() by masking off the format bits.
|
|
+ */
|
|
+int anon_inode_getattr(struct mnt_idmap *idmap, const struct path *path,
|
|
+ struct kstat *stat, u32 request_mask,
|
|
+ unsigned int query_flags)
|
|
+{
|
|
+ struct inode *inode = d_inode(path->dentry);
|
|
+
|
|
+ generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat);
|
|
+ stat->mode &= ~S_IFMT;
|
|
+ return 0;
|
|
+}
|
|
+
|
|
+int anon_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
|
|
+ struct iattr *attr)
|
|
+{
|
|
+ return -EOPNOTSUPP;
|
|
+}
|
|
+
|
|
+/**
|
|
+ * inode_maybe_inc_iversion - increments i_version
|
|
+ * @inode: inode with the i_version that should be updated
|
|
+ * @force: increment the counter even if it's not necessary?
|
|
+ *
|
|
+ * Every time the inode is modified, the i_version field must be seen to have
|
|
+ * changed by any observer.
|
|
+ *
|
|
+ * If "force" is set or the QUERIED flag is set, then ensure that we increment
|
|
+ * the value, and clear the queried flag.
|
|
+ *
|
|
+ * In the common case where neither is set, then we can return "false" without
|
|
+ * updating i_version.
|
|
+ *
|
|
+ * If this function returns false, and no other metadata has changed, then we
|
|
+ * can avoid logging the metadata.
|
|
+ */
|
|
+bool inode_maybe_inc_iversion(struct inode *inode, bool force)
|
|
+{
|
|
+ u64 cur, new;
|
|
+
|
|
+ /*
|
|
+ * The i_version field is not strictly ordered with any other inode
|
|
+ * information, but the legacy inode_inc_iversion code used a spinlock
|
|
+ * to serialize increments.
|
|
+ *
|
|
+ * We add a full memory barrier to ensure that any de facto ordering
|
|
+ * with other state is preserved (either implicitly coming from cmpxchg
|
|
+ * or explicitly from smp_mb if we don't know upfront if we will execute
|
|
+ * the former).
|
|
+ *
|
|
+ * These barriers pair with inode_query_iversion().
|
|
+ */
|
|
+ cur = inode_peek_iversion_raw(inode);
|
|
+ if (!force && !(cur & I_VERSION_QUERIED)) {
|
|
+ smp_mb();
|
|
+ cur = inode_peek_iversion_raw(inode);
|
|
+ }
|
|
+
|
|
+ do {
|
|
+ /* If flag is clear then we needn't do anything */
|
|
+ if (!force && !(cur & I_VERSION_QUERIED))
|
|
+ return false;
|
|
+
|
|
+ /* Since lowest bit is flag, add 2 to avoid it */
|
|
+ new = (cur & ~I_VERSION_QUERIED) + I_VERSION_INCREMENT;
|
|
+ } while (!atomic64_try_cmpxchg(&inode->i_version, &cur, new));
|
|
+ return true;
|
|
+}
|
|
+EXPORT_SYMBOL(inode_maybe_inc_iversion);
|
|
+
|
|
+/**
|
|
+ * inode_query_iversion - read i_version for later use
|
|
+ * @inode: inode from which i_version should be read
|
|
+ *
|
|
+ * Read the inode i_version counter. This should be used by callers that wish
|
|
+ * to store the returned i_version for later comparison. This will guarantee
|
|
+ * that a later query of the i_version will result in a different value if
|
|
+ * anything has changed.
|
|
+ *
|
|
+ * In this implementation, we fetch the current value, set the QUERIED flag and
|
|
+ * then try to swap it into place with a cmpxchg, if it wasn't already set. If
|
|
+ * that fails, we try again with the newly fetched value from the cmpxchg.
|
|
+ */
|
|
+u64 inode_query_iversion(struct inode *inode)
|
|
+{
|
|
+ u64 cur, new;
|
|
+ bool fenced = false;
|
|
+
|
|
+ /*
|
|
+ * Memory barriers (implicit in cmpxchg, explicit in smp_mb) pair with
|
|
+ * inode_maybe_inc_iversion(), see that routine for more details.
|
|
+ */
|
|
+ cur = inode_peek_iversion_raw(inode);
|
|
+ do {
|
|
+ /* If flag is already set, then no need to swap */
|
|
+ if (cur & I_VERSION_QUERIED) {
|
|
+ if (!fenced)
|
|
+ smp_mb();
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ fenced = true;
|
|
+ new = cur | I_VERSION_QUERIED;
|
|
+ } while (!atomic64_try_cmpxchg(&inode->i_version, &cur, new));
|
|
+ return cur >> I_VERSION_QUERIED_SHIFT;
|
|
+}
|
|
+EXPORT_SYMBOL(inode_query_iversion);
|
|
diff --git a/fs/stat.c b/fs/stat.c
|
|
index c461c30542340841911766e8b052d42933156707..2f8a8e1350b62f5cbdadb1dd6ef7e056d50f711b 100644
|
|
--- a/fs/stat.c
|
|
+++ b/fs/stat.c
|
|
@@ -28,91 +28,6 @@
|
|
#include "internal.h"
|
|
#include "mount.h"
|
|
|
|
-/**
|
|
- * fill_mg_cmtime - Fill in the mtime and ctime and flag ctime as QUERIED
|
|
- * @stat: where to store the resulting values
|
|
- * @request_mask: STATX_* values requested
|
|
- * @inode: inode from which to grab the c/mtime
|
|
- *
|
|
- * Given @inode, grab the ctime and mtime out if it and store the result
|
|
- * in @stat. When fetching the value, flag it as QUERIED (if not already)
|
|
- * so the next write will record a distinct timestamp.
|
|
- *
|
|
- * NB: The QUERIED flag is tracked in the ctime, but we set it there even
|
|
- * if only the mtime was requested, as that ensures that the next mtime
|
|
- * change will be distinct.
|
|
- */
|
|
-void fill_mg_cmtime(struct kstat *stat, u32 request_mask, struct inode *inode)
|
|
-{
|
|
- atomic_t *pcn = (atomic_t *)&inode->i_ctime_nsec;
|
|
-
|
|
- /* If neither time was requested, then don't report them */
|
|
- if (!(request_mask & (STATX_CTIME|STATX_MTIME))) {
|
|
- stat->result_mask &= ~(STATX_CTIME|STATX_MTIME);
|
|
- return;
|
|
- }
|
|
-
|
|
- stat->mtime = inode_get_mtime(inode);
|
|
- stat->ctime.tv_sec = inode_get_ctime_sec(inode);
|
|
- stat->ctime.tv_nsec = (u32)atomic_read(pcn);
|
|
- if (!(stat->ctime.tv_nsec & I_CTIME_QUERIED))
|
|
- stat->ctime.tv_nsec = ((u32)atomic_fetch_or(I_CTIME_QUERIED, pcn));
|
|
- stat->ctime.tv_nsec &= ~I_CTIME_QUERIED;
|
|
- trace_fill_mg_cmtime(inode, &stat->ctime, &stat->mtime);
|
|
-}
|
|
-EXPORT_SYMBOL(fill_mg_cmtime);
|
|
-
|
|
-/**
|
|
- * generic_fillattr - Fill in the basic attributes from the inode struct
|
|
- * @idmap: idmap of the mount the inode was found from
|
|
- * @request_mask: statx request_mask
|
|
- * @inode: Inode to use as the source
|
|
- * @stat: Where to fill in the attributes
|
|
- *
|
|
- * Fill in the basic attributes in the kstat structure from data that's to be
|
|
- * found on the VFS inode structure. This is the default if no getattr inode
|
|
- * operation is supplied.
|
|
- *
|
|
- * If the inode has been found through an idmapped mount the idmap of
|
|
- * the vfsmount must be passed through @idmap. This function will then
|
|
- * take care to map the inode according to @idmap before filling in the
|
|
- * uid and gid filds. On non-idmapped mounts or if permission checking is to be
|
|
- * performed on the raw inode simply pass @nop_mnt_idmap.
|
|
- */
|
|
-void generic_fillattr(struct mnt_idmap *idmap, u32 request_mask,
|
|
- struct inode *inode, struct kstat *stat)
|
|
-{
|
|
- vfsuid_t vfsuid = i_uid_into_vfsuid(idmap, inode);
|
|
- vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode);
|
|
-
|
|
- stat->dev = inode->i_sb->s_dev;
|
|
- stat->ino = inode->i_ino;
|
|
- stat->mode = inode->i_mode;
|
|
- stat->nlink = inode->i_nlink;
|
|
- stat->uid = vfsuid_into_kuid(vfsuid);
|
|
- stat->gid = vfsgid_into_kgid(vfsgid);
|
|
- stat->rdev = inode->i_rdev;
|
|
- stat->size = i_size_read(inode);
|
|
- stat->atime = inode_get_atime(inode);
|
|
-
|
|
- if (is_mgtime(inode)) {
|
|
- fill_mg_cmtime(stat, request_mask, inode);
|
|
- } else {
|
|
- stat->ctime = inode_get_ctime(inode);
|
|
- stat->mtime = inode_get_mtime(inode);
|
|
- }
|
|
-
|
|
- stat->blksize = i_blocksize(inode);
|
|
- stat->blocks = inode->i_blocks;
|
|
-
|
|
- if ((request_mask & STATX_CHANGE_COOKIE) && IS_I_VERSION(inode)) {
|
|
- stat->result_mask |= STATX_CHANGE_COOKIE;
|
|
- stat->change_cookie = inode_query_iversion(inode);
|
|
- }
|
|
-
|
|
-}
|
|
-EXPORT_SYMBOL(generic_fillattr);
|
|
-
|
|
/**
|
|
* generic_fill_statx_attr - Fill in the statx attributes from the inode flags
|
|
* @inode: Inode to use as the source
|