Commit 8b47e73e authored by Miklos Szeredi's avatar Miklos Szeredi

fuse: remove .update_time

This implements updating ctime as well as mtime on file_update_time().
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent ab9e13f7
...@@ -1947,17 +1947,6 @@ static int fuse_removexattr(struct dentry *entry, const char *name) ...@@ -1947,17 +1947,6 @@ static int fuse_removexattr(struct dentry *entry, const char *name)
return err; return err;
} }
static int fuse_update_time(struct inode *inode, struct timespec *now,
int flags)
{
if (flags & S_MTIME) {
inode->i_mtime = *now;
mark_inode_dirty_sync(inode);
BUG_ON(!S_ISREG(inode->i_mode));
}
return 0;
}
static const struct inode_operations fuse_dir_inode_operations = { static const struct inode_operations fuse_dir_inode_operations = {
.lookup = fuse_lookup, .lookup = fuse_lookup,
.mkdir = fuse_mkdir, .mkdir = fuse_mkdir,
...@@ -1997,7 +1986,6 @@ static const struct inode_operations fuse_common_inode_operations = { ...@@ -1997,7 +1986,6 @@ static const struct inode_operations fuse_common_inode_operations = {
.getxattr = fuse_getxattr, .getxattr = fuse_getxattr,
.listxattr = fuse_listxattr, .listxattr = fuse_listxattr,
.removexattr = fuse_removexattr, .removexattr = fuse_removexattr,
.update_time = fuse_update_time,
}; };
static const struct inode_operations fuse_symlink_inode_operations = { static const struct inode_operations fuse_symlink_inode_operations = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment