summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2012-06-06 18:06:09 +0530
committerAnand Avati <avati@redhat.com>2012-06-06 11:00:39 -0700
commit990bc3991a0a998dc74d43250fed40ad1f72e849 (patch)
treee5c22054ae7056d0732c7e5aadadb112249f0146 /xlators/mount
parent4b09879d04606b7996cfea85af3f06a307728bee (diff)
mount/fuse: use correct fdctx to inherit direct-io-values from.
Change-Id: Ifea178f4dbe57720c16dc3851b262952f3d81159 BUG: 762533 Signed-off-by: Raghavendra G <raghavendra@gluster.com> Reviewed-on: http://review.gluster.com/3531 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mount')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 6d39b1f5..3b4c6c68 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -626,7 +626,7 @@ fuse_fd_inherit_directio (xlator_t *this, fd_t *fd, struct fuse_open_out *foo)
tmp_fd = fd_lookup (fd->inode, 0);
if (tmp_fd) {
- tmp_fdctx = fuse_fd_ctx_get (this, fd);
+ tmp_fdctx = fuse_fd_ctx_get (this, tmp_fd);
if (tmp_fdctx) {
foo->open_flags &= ~FOPEN_DIRECT_IO;
foo->open_flags |= (tmp_fdctx->open_flags