mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
bpf: convert to new timestamp accessors
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>
This commit is contained in:
parent
d162a3cf6e
commit
1bc628a756
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user