mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
kernfs: don't bother with timestamp truncation
kernfs users are not going to have limited range or granularity anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
23b424d9c3
commit
f0f3588f7a
@ -160,9 +160,9 @@ static inline void set_inode_attr(struct inode *inode,
|
|||||||
{
|
{
|
||||||
inode->i_uid = attrs->ia_uid;
|
inode->i_uid = attrs->ia_uid;
|
||||||
inode->i_gid = attrs->ia_gid;
|
inode->i_gid = attrs->ia_gid;
|
||||||
inode->i_atime = timestamp_truncate(attrs->ia_atime, inode);
|
inode->i_atime = attrs->ia_atime;
|
||||||
inode->i_mtime = timestamp_truncate(attrs->ia_mtime, inode);
|
inode->i_mtime = attrs->ia_mtime;
|
||||||
inode->i_ctime = timestamp_truncate(attrs->ia_ctime, inode);
|
inode->i_ctime = attrs->ia_ctime;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void kernfs_refresh_inode(struct kernfs_node *kn, struct inode *inode)
|
static void kernfs_refresh_inode(struct kernfs_node *kn, struct inode *inode)
|
||||||
|
Loading…
Reference in New Issue
Block a user