Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140415
b: refs/heads/master
c: fc280c9
h: refs/heads/master
i:
  140413: 49dd4e0
  140411: dca03a9
  140407: 70f4534
  140399: 53c1afa
  140383: 1dec331
  140351: 87a1ce8
  140287: 5cc369f
v: v3
  • Loading branch information
Miklos Szeredi committed Apr 2, 2009
1 parent a99933a commit 3799523
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f4975c67dd9ad8eb47a4c77af0521a2b16ee0197
refs/heads/master: fc280c9692031ee41545d6bea00bbb7c7dec97a9
12 changes: 11 additions & 1 deletion trunk/fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,15 @@ static int fuse_file_mmap(struct file *file, struct vm_area_struct *vma)
return 0;
}

static int fuse_direct_mmap(struct file *file, struct vm_area_struct *vma)
{
/* Can't provide the coherency needed for MAP_SHARED */
if (vma->vm_flags & VM_MAYSHARE)
return -ENODEV;

return generic_file_mmap(file, vma);
}

static int convert_fuse_file_lock(const struct fuse_file_lock *ffl,
struct file_lock *fl)
{
Expand Down Expand Up @@ -1926,6 +1935,7 @@ static const struct file_operations fuse_direct_io_file_operations = {
.llseek = fuse_file_llseek,
.read = fuse_direct_read,
.write = fuse_direct_write,
.mmap = fuse_direct_mmap,
.open = fuse_open,
.flush = fuse_flush,
.release = fuse_release,
Expand All @@ -1935,7 +1945,7 @@ static const struct file_operations fuse_direct_io_file_operations = {
.unlocked_ioctl = fuse_file_ioctl,
.compat_ioctl = fuse_file_compat_ioctl,
.poll = fuse_file_poll,
/* no mmap and splice_read */
/* no splice_read */
};

static const struct address_space_operations fuse_file_aops = {
Expand Down

0 comments on commit 3799523

Please sign in to comment.