summaryrefslogtreecommitdiffstats
path: root/fs/coda/upcall.c
diff options
context:
space:
mode:
authorJan Harkes <jaharkes@cs.cmu.edu>2007-07-19 01:48:48 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 10:04:48 -0700
commit37461e1957e6262278342a0c1a78e46996b7ff88 (patch)
tree1b4113a24a44e71cae787d51ff59c3fdad78d489 /fs/coda/upcall.c
parent978752534e94b50c8078b229134a37bad9db88b2 (diff)
downloadlinux-37461e1957e6262278342a0c1a78e46996b7ff88.tar.bz2
coda: replace upc_alloc/upc_free with kmalloc/kfree
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/coda/upcall.c')
-rw-r--r--fs/coda/upcall.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c
index ad65ee01790f..330de7dbdcf8 100644
--- a/fs/coda/upcall.c
+++ b/fs/coda/upcall.c
@@ -37,9 +37,6 @@
#include <linux/coda_cache.h>
#include <linux/coda_proc.h>
-#define upc_alloc() kmalloc(sizeof(struct upc_req), GFP_KERNEL)
-#define upc_free(r) kfree(r)
-
static int coda_upcall(struct coda_sb_info *mntinfo, int inSize, int *outSize,
union inputArgs *buffer);
@@ -745,7 +742,7 @@ static int coda_upcall(struct coda_sb_info *sbi,
}
/* Format the request message. */
- req = upc_alloc();
+ req = kmalloc(sizeof(struct upc_req), GFP_KERNEL);
if (!req)
return -ENOMEM;
@@ -802,12 +799,12 @@ static int coda_upcall(struct coda_sb_info *sbi,
}
error = -ENOMEM;
- sig_req = upc_alloc();
+ sig_req = kmalloc(sizeof(struct upc_req), GFP_KERNEL);
if (!sig_req) goto exit;
CODA_ALLOC((sig_req->uc_data), char *, sizeof(struct coda_in_hdr));
if (!sig_req->uc_data) {
- upc_free(sig_req);
+ kfree(sig_req);
goto exit;
}
@@ -827,7 +824,7 @@ static int coda_upcall(struct coda_sb_info *sbi,
wake_up_interruptible(&vcommp->vc_waitq);
exit:
- upc_free(req);
+ kfree(req);
return error;
}