Patchwork [BUG:1280,10/12] nfs: Set actorxl to enable setting THIS to nfsx

login
register
Submitter Shehjar Tikoo
Date 2010-08-31 12:20:35
Message ID <1283257237-18659-10-git-send-email-shehjart@gluster.com>
Download mbox | patch
Permalink /patch/4423/
State Accepted
Delegated to: Anand Avati
Headers show

Comments

Shehjar Tikoo - 2010-08-31 12:20:35
From: Shehjar Tikoo <shehjart@gluster.com>

..for fixing mem-accounting for NFS in mainline.

Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
---
 xlators/nfs/server/src/nfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index c74691c..033a60b 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -113,6 +113,7 @@  nfs_init_versions (struct nfs_state *nfs, xlator_t *this)
                 }
 
                 prog = version->init (this);
+                prog->actorxl = this;
                 version->program = prog;
                 if (!prog) {
                         ret = -1;