diff options
author | Maxim Patlasov <MPatlasov@parallels.com> | 2014-04-28 14:19:25 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-28 14:19:25 +0200 |
commit | 3ad22c62dd23ad26c8737c300f455de60ba01f40 (patch) | |
tree | fb861c617f46885bb29a21ba8e50eebd27ed4968 /fs/fuse/inode.c | |
parent | 31f3267b4ba16b12fb9dd3b1953ea0f221cc2ab4 (diff) | |
download | op-kernel-dev-3ad22c62dd23ad26c8737c300f455de60ba01f40.zip op-kernel-dev-3ad22c62dd23ad26c8737c300f455de60ba01f40.tar.gz |
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>
Diffstat (limited to 'fs/fuse/inode.c')
0 files changed, 0 insertions, 0 deletions