fuse: allow ctime flushing to userspace

The patch extends fuse_setattr_in, and extends the flush procedure
(fuse_flush_times()) called on ->write_inode() to send the ctime as well as
mtime.

Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
Maxim Patlasov
2014-04-28 14:19:24 +02:00
committed by Miklos Szeredi
parent e27c9d3877
commit ab9e13f7c7
4 changed files with 14 additions and 6 deletions

View File

@@ -1691,7 +1691,7 @@ int fuse_write_inode(struct inode *inode, struct writeback_control *wbc)
int err;
ff = __fuse_write_file_get(fc, fi);
err = fuse_flush_mtime(inode, ff);
err = fuse_flush_times(inode, ff);
if (ff)
fuse_file_put(ff, 0);