From 1f5ad47e48cf4901b027a674179025c078c00953 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 15 Apr 2011 22:05:21 +0000 Subject: features/quota: set 'frame->local' to local in fsync so fsync call can succeed Signed-off-by: Amar Tumballi Signed-off-by: Anand Avati BUG: 2772 ([glusterfs-3.2.0qa12]: excessive quota local NULL errors) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2772 --- xlators/features/quota/src/quota.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index cbf44473e10..44eca3e89e1 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -2379,6 +2379,8 @@ quota_fsync (call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t flags) local->loc.inode = inode_ref (fd->inode); + frame->local = local; + STACK_WIND (frame, quota_fsync_cbk, FIRST_CHILD(this), FIRST_CHILD(this)->fops->fsync, fd, flags); return 0; -- cgit