From 059c8b23e1f19f9cfcd6aa2c2235afc032bc5d34 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 8 Apr 2010 13:14:44 +0000 Subject: afr: afr_fsetattr - send proper inode pointer to afr_read_child() Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 814 (replicate complains of invalid inode in afr_read_child()) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=814 --- xlators/cluster/afr/src/afr-inode-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c index 32e93e6e2fe..a7751e68e9c 100644 --- a/xlators/cluster/afr/src/afr-inode-write.c +++ b/xlators/cluster/afr/src/afr-inode-write.c @@ -1077,7 +1077,7 @@ afr_fsetattr_wind_cbk (call_frame_t *frame, void *cookie, xlator_t *this, local = frame->local; priv = this->private; - read_child = afr_read_child (this, local->loc.inode); + read_child = afr_read_child (this, local->fd->inode); LOCK (&frame->lock); { -- cgit