summaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2019-04-19 23:42:44 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2019-04-24 17:05:07 +0200
commit154603fe3ec4620a4c229a127ddbccf5c69f9463 (patch)
tree4a98002c6be08d8fd2535550061fed3eb0a8c06e /fs/fuse
parentfuse: Add FOPEN_STREAM to use stream_open() (diff)
downloadlinux-154603fe3ec4620a4c229a127ddbccf5c69f9463.tar.xz
linux-154603fe3ec4620a4c229a127ddbccf5c69f9463.zip
fuse: document fuse_fsync_in.fsync_flags
The FUSE_FSYNC_DATASYNC flag was introduced by commit b6aeadeda22a ("[PATCH] FUSE - file operations") as a magic number. No new values have been added to fsync_flags since. Signed-off-by: Alan Somers <asomers@FreeBSD.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 92ee15dda4c7..1f9da7a5ad0d 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -464,7 +464,7 @@ int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
memset(&inarg, 0, sizeof(inarg));
inarg.fh = ff->fh;
- inarg.fsync_flags = datasync ? 1 : 0;
+ inarg.fsync_flags = datasync ? FUSE_FSYNC_FDATASYNC : 0;
args.in.h.opcode = opcode;
args.in.h.nodeid = get_node_id(inode);
args.in.numargs = 1;