[Devel] [PATCH RHEL7 COMMIT] fuse kio: Refactoring in fuse_show_options()

Konstantin Khorenko khorenko at virtuozzo.com
Tue Oct 9 11:50:43 MSK 2018


The commit is pushed to "branch-rh7-3.10.0-862.14.4.vz7.72.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.14.4.vz7.72.4
------>
commit 49f713a24170383010a64e06dc2e3b0d986e7a67
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Tue Oct 9 11:50:41 2018 +0300

    fuse kio: Refactoring in fuse_show_options()
    
    Check for kio.op in fuse_show_options() instead of the flag.
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
    Reviewed-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
---
 fs/fuse/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 0f507b242e1f..409dc5abd461 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -753,7 +753,7 @@ static int fuse_show_options(struct seq_file *m, struct dentry *root)
 		seq_printf(m, ",blksize=%lu", sb->s_blocksize);
 	if (fc->writeback_cache)
 		seq_puts(m, ",writeback_enable");
-	if (fc->flags & FUSE_KDIRECT_IO)
+	if (fc->kio.op)
 		seq_printf(m, ",kdirect=%s", fc->kio.op->name);
 	return 0;
 }



More information about the Devel mailing list