diff options
author | Amar Tumballi <amar@gluster.com> | 2011-04-15 22:05:21 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-16 04:10:37 -0700 |
commit | 1f5ad47e48cf4901b027a674179025c078c00953 (patch) | |
tree | 6d1f2005e11df7eb0e2b4dce9fbd5c1c21bb31bc /xlators | |
parent | f727e847133e479a37e86a7feb5826496a7313f7 (diff) |
features/quota: set 'frame->local' to local in fsync
so fsync call can succeed
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2772 ([glusterfs-3.2.0qa12]: excessive quota local NULL errors)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2772
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/quota/src/quota.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |