projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e4e269
)
cramfs: convert to new timestamp accessors
author
Jeff Layton
<jlayton@kernel.org>
Wed, 4 Oct 2023 18:52:12 +0000
(14:52 -0400)
committer
Christian Brauner
<brauner@kernel.org>
Wed, 18 Oct 2023 11:26:20 +0000
(13:26 +0200)
Convert to using the new inode timestamp accessor functions.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link:
https://lore.kernel.org/r/20231004185347.80880-25-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/cramfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/cramfs/inode.c
b/fs/cramfs/inode.c
index 5ee7d7bbb361cee01acf0d0f4a41502dda3ce157..9168b2ec9497ec1c0f66bbf9db21a7d1bef940af 100644
(file)
--- a/
fs/cramfs/inode.c
+++ b/
fs/cramfs/inode.c
@@
-133,8
+133,8
@@
static struct inode *get_cramfs_inode(struct super_block *sb,
}
/* Struct copy intentional */
- inode
->i_mtime = inode->i_atime = inode_set_c
time_to_ts(inode,
-
zerotime
);
+ inode
_set_m
time_to_ts(inode,
+
inode_set_atime_to_ts(inode, inode_set_ctime_to_ts(inode, zerotime))
);
/* inode->i_nlink is left 1 - arguably wrong for directories,
but it's the best we can do without reading the directory
contents. 1 yields the right result in GNU find, even