projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d162a3c
)
bpf: convert to new timestamp accessors
author
Jeff Layton
<jlayton@kernel.org>
Wed, 4 Oct 2023 18:53:06 +0000
(14:53 -0400)
committer
Christian Brauner
<brauner@kernel.org>
Wed, 18 Oct 2023 12:08:30 +0000
(14:08 +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-79-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
kernel/bpf/inode.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/inode.c
b/kernel/bpf/inode.c
index 99d0625b6c828f0d28e7b6b1c68be14f349e4087..1aafb2ff2e953c1a760f7e72f26de2bd966ac4de 100644
(file)
--- a/
kernel/bpf/inode.c
+++ b/
kernel/bpf/inode.c
@@
-118,8
+118,7
@@
static struct inode *bpf_get_inode(struct super_block *sb,
return ERR_PTR(-ENOSPC);
inode->i_ino = get_next_ino();
- inode->i_atime = inode_set_ctime_current(inode);
- inode->i_mtime = inode->i_atime;
+ simple_inode_init_ts(inode);
inode_init_owner(&nop_mnt_idmap, inode, dir, mode);
@@
-147,7
+146,7
@@
static void bpf_dentry_finalize(struct dentry *dentry, struct inode *inode,
d_instantiate(dentry, inode);
dget(dentry);
-
dir->i_mtime = inode_set_ctime_current(dir
);
+
inode_set_mtime_to_ts(dir, inode_set_ctime_current(dir)
);
}
static int bpf_mkdir(struct mnt_idmap *idmap, struct inode *dir,