summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2014-04-28 14:19:22 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2014-04-28 14:19:22 +0200
commit93d2269d2ffb871fdfc5555cb5d4a7c0fc56e7fe (patch)
tree1c1bb7de1d565e81737b22c1e6dd7371a55ef78d
parent75caeecdf9c7151af5f7d972e2dabbff1bef30a7 (diff)
downloadop-kernel-dev-93d2269d2ffb871fdfc5555cb5d4a7c0fc56e7fe.zip
op-kernel-dev-93d2269d2ffb871fdfc5555cb5d4a7c0fc56e7fe.tar.gz
fuse: fuse: fallocate: use file_update_time()
in preparation for getting rid of FUSE_I_MTIME_DIRTY. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
-rw-r--r--fs/fuse/file.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index e68d8c3..3391f6a 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -3030,12 +3030,8 @@ static long fuse_file_fallocate(struct file *file, int mode, loff_t offset,
if (!(mode & FALLOC_FL_KEEP_SIZE)) {
bool changed = fuse_write_update_size(inode, offset + length);
- if (changed && fc->writeback_cache) {
- struct fuse_inode *fi = get_fuse_inode(inode);
-
- inode->i_mtime = current_fs_time(inode->i_sb);
- set_bit(FUSE_I_MTIME_DIRTY, &fi->state);
- }
+ if (changed && fc->writeback_cache)
+ file_update_time(file);
}
if (mode & FALLOC_FL_PUNCH_HOLE)
OpenPOWER on IntegriCloud