kernel-ark/fs/fuse
Maxim Patlasov 3ad22c62dd fuse: clear FUSE_I_CTIME_DIRTY flag on setattr
The patch addresses two use-cases when the flag may be safely cleared:

1. fuse_do_setattr() is called with ATTR_CTIME flag set in attr->ia_valid.
In this case attr->ia_ctime bears actual value. In-kernel fuse must send it
to the userspace server and then assign the value to inode->i_ctime.

2. fuse_do_setattr() is called with ATTR_SIZE flag set in attr->ia_valid,
whereas ATTR_CTIME is not set (truncate(2)).
In this case in-kernel fuse must sent "now" to the userspace server and then
assign the value to inode->i_ctime.

In both cases we could clear I_DIRTY_SYNC, but that needs more thought.

Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
2014-04-28 14:19:25 +02:00
..
control.c fuse: add __exit to fuse_ctl_cleanup 2014-04-28 14:19:21 +02:00
cuse.c Nothing major: the stricter permissions checking for sysfs broke 2014-04-06 09:38:07 -07:00
dev.c pipe: kill ->map() and ->unmap() 2014-04-01 23:19:19 -04:00
dir.c fuse: clear FUSE_I_CTIME_DIRTY flag on setattr 2014-04-28 14:19:25 +02:00
file.c fuse: allow ctime flushing to userspace 2014-04-28 14:19:24 +02:00
fuse_i.h fuse: allow ctime flushing to userspace 2014-04-28 14:19:24 +02:00
inode.c fuse: trust kernel i_ctime only 2014-04-28 14:19:24 +02:00
Kconfig fuse: Move CUSE Kconfig entry from fs/Kconfig into fs/fuse/Kconfig 2013-01-17 13:08:45 +01:00
Makefile CUSE: implement CUSE - Character device in Userspace 2009-06-09 11:24:11 +02:00