diff options
| -rw-r--r-- | fs/fuse/file.c | 2 | ||||
| -rw-r--r-- | include/uapi/linux/fuse.h | 7 |
2 files changed, 8 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, | |||
| 464 | 464 | ||
| 465 | memset(&inarg, 0, sizeof(inarg)); | 465 | memset(&inarg, 0, sizeof(inarg)); |
| 466 | inarg.fh = ff->fh; | 466 | inarg.fh = ff->fh; |
| 467 | inarg.fsync_flags = datasync ? 1 : 0; | 467 | inarg.fsync_flags = datasync ? FUSE_FSYNC_FDATASYNC : 0; |
| 468 | args.in.h.opcode = opcode; | 468 | args.in.h.opcode = opcode; |
| 469 | args.in.h.nodeid = get_node_id(inode); | 469 | args.in.h.nodeid = get_node_id(inode); |
| 470 | args.in.numargs = 1; | 470 | args.in.numargs = 1; |
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h index 17afe2dd8d1c..59d5048df41e 100644 --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h | |||
| @@ -360,6 +360,13 @@ struct fuse_file_lock { | |||
| 360 | */ | 360 | */ |
| 361 | #define FUSE_POLL_SCHEDULE_NOTIFY (1 << 0) | 361 | #define FUSE_POLL_SCHEDULE_NOTIFY (1 << 0) |
| 362 | 362 | ||
| 363 | /** | ||
| 364 | * Fsync flags | ||
| 365 | * | ||
| 366 | * FUSE_FSYNC_FDATASYNC: Sync data only, not metadata | ||
| 367 | */ | ||
| 368 | #define FUSE_FSYNC_FDATASYNC (1 << 0) | ||
| 369 | |||
| 363 | enum fuse_opcode { | 370 | enum fuse_opcode { |
| 364 | FUSE_LOOKUP = 1, | 371 | FUSE_LOOKUP = 1, |
| 365 | FUSE_FORGET = 2, /* no reply */ | 372 | FUSE_FORGET = 2, /* no reply */ |
