[Devel] [PATCH RHEL7 COMMIT] fs/fuse: set inode entry for FUSE_FLUSH request

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jun 28 17:58:41 MSK 2018


The commit is pushed to "branch-rh7-3.10.0-862.3.2.vz7.61.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.3.2.vz7.61.6
------>
commit 7c6dd1da64b625050bd600965fd7411168346a81
Author: Pavel Butsykin <pbutsykin at virtuozzo.com>
Date:   Thu Jun 28 17:58:41 2018 +0300

    fs/fuse: set inode entry for FUSE_FLUSH request
    
    It is necessary to implement kio flush, because it requires the extraction of
    a mapping belonging to this inode.
    
    Signed-off-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
    Acked-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
    
    ==================================================
    Pathset description:
    [PATCH 0/2] Add flush() request handling in fast-path
    
    https://pmc.acronis.com/browse/VSTOR-11064
    
    Pavel Butsykin (2):
      fs/fuse: set inode entry for FUSE_FLUSH request
      fs/fuse kio_pcs: add handling FUSE_FLUSH in kio_pcs
---
 fs/fuse/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 6db966ef0b6f..09b04d40b5db 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -666,6 +666,7 @@ static int fuse_flush(struct file *file, fl_owner_t id)
 	inarg.fh = ff->fh;
 	inarg.lock_owner = fuse_lock_owner_id(fc, id);
 	req->in.h.opcode = FUSE_FLUSH;
+	req->io_inode = inode;
 	req->in.h.nodeid = get_node_id(inode);
 	req->in.numargs = 1;
 	req->in.args[0].size = sizeof(inarg);


More information about the Devel mailing list