diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-28 14:19:24 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-28 14:19:24 +0200 |
commit | 8b47e73e91c064cd75e8bf458ce738e1bfe2e700 (patch) | |
tree | c877a67ccd085a8a41c751c596ad99d73f6aac66 /fs | |
parent | ab9e13f7c771b511d8f71666e83cb27bcc635b98 (diff) | |
download | linux-8b47e73e91c064cd75e8bf458ce738e1bfe2e700.tar.bz2 |
fuse: remove .update_time
This implements updating ctime as well as mtime on file_update_time().
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fuse/dir.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index e6ba579e2937..65357bd1d17b 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -1947,17 +1947,6 @@ static int fuse_removexattr(struct dentry *entry, const char *name) 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 = { .lookup = fuse_lookup, .mkdir = fuse_mkdir, @@ -1997,7 +1986,6 @@ static const struct inode_operations fuse_common_inode_operations = { .getxattr = fuse_getxattr, .listxattr = fuse_listxattr, .removexattr = fuse_removexattr, - .update_time = fuse_update_time, }; static const struct inode_operations fuse_symlink_inode_operations = { |