diff options
| author | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-28 08:19:24 -0400 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-28 08:19:24 -0400 |
| commit | 8b47e73e91c064cd75e8bf458ce738e1bfe2e700 (patch) | |
| tree | c877a67ccd085a8a41c751c596ad99d73f6aac66 | |
| parent | ab9e13f7c771b511d8f71666e83cb27bcc635b98 (diff) | |
fuse: remove .update_time
This implements updating ctime as well as mtime on file_update_time().
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
| -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) | |||
| 1947 | return err; | 1947 | return err; |
| 1948 | } | 1948 | } |
| 1949 | 1949 | ||
| 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 | |||
| 1961 | static const struct inode_operations fuse_dir_inode_operations = { | 1950 | static const struct inode_operations fuse_dir_inode_operations = { |
| 1962 | .lookup = fuse_lookup, | 1951 | .lookup = fuse_lookup, |
| 1963 | .mkdir = fuse_mkdir, | 1952 | .mkdir = fuse_mkdir, |
| @@ -1997,7 +1986,6 @@ static const struct inode_operations fuse_common_inode_operations = { | |||
| 1997 | .getxattr = fuse_getxattr, | 1986 | .getxattr = fuse_getxattr, |
| 1998 | .listxattr = fuse_listxattr, | 1987 | .listxattr = fuse_listxattr, |
| 1999 | .removexattr = fuse_removexattr, | 1988 | .removexattr = fuse_removexattr, |
| 2000 | .update_time = fuse_update_time, | ||
| 2001 | }; | 1989 | }; |
| 2002 | 1990 | ||
| 2003 | static const struct inode_operations fuse_symlink_inode_operations = { | 1991 | static const struct inode_operations fuse_symlink_inode_operations = { |
