Skip to content

Commit 8b47e73

Browse files
author
Miklos Szeredi
committed
fuse: remove .update_time
This implements updating ctime as well as mtime on file_update_time(). Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
1 parent ab9e13f commit 8b47e73

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎fs/fuse/dir.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,17 +1947,6 @@ static int fuse_removexattr(struct dentry *entry, const char *name)
19471947
return err;
19481948
}
19491949

1950-
static int fuse_update_time(struct inode *inode, struct timespec *now,
1951-
int flags)
1952-
{
1953-
if (flags & S_MTIME) {
1954-
inode->i_mtime = *now;
1955-
mark_inode_dirty_sync(inode);
1956-
BUG_ON(!S_ISREG(inode->i_mode));
1957-
}
1958-
return 0;
1959-
}
1960-
19611950
static const struct inode_operations fuse_dir_inode_operations = {
19621951
.lookup = fuse_lookup,
19631952
.mkdir = fuse_mkdir,
@@ -1997,7 +1986,6 @@ static const struct inode_operations fuse_common_inode_operations = {
19971986
.getxattr = fuse_getxattr,
19981987
.listxattr = fuse_listxattr,
19991988
.removexattr = fuse_removexattr,
2000-
.update_time = fuse_update_time,
20011989
};
20021990

20031991
static const struct inode_operations fuse_symlink_inode_operations = {

0 commit comments

Comments
 (0)