diff options
author | Jan Harkes <jaharkes@cs.cmu.edu> | 2007-07-19 04:48:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:48 -0400 |
commit | 37461e1957e6262278342a0c1a78e46996b7ff88 (patch) | |
tree | 1b4113a24a44e71cae787d51ff59c3fdad78d489 /fs/coda/upcall.c | |
parent | 978752534e94b50c8078b229134a37bad9db88b2 (diff) |
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.c | 11 |
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 @@ | |||
37 | #include <linux/coda_cache.h> | 37 | #include <linux/coda_cache.h> |
38 | #include <linux/coda_proc.h> | 38 | #include <linux/coda_proc.h> |
39 | 39 | ||
40 | #define upc_alloc() kmalloc(sizeof(struct upc_req), GFP_KERNEL) | ||
41 | #define upc_free(r) kfree(r) | ||
42 | |||
43 | static int coda_upcall(struct coda_sb_info *mntinfo, int inSize, int *outSize, | 40 | static int coda_upcall(struct coda_sb_info *mntinfo, int inSize, int *outSize, |
44 | union inputArgs *buffer); | 41 | union inputArgs *buffer); |
45 | 42 | ||
@@ -745,7 +742,7 @@ static int coda_upcall(struct coda_sb_info *sbi, | |||
745 | } | 742 | } |
746 | 743 | ||
747 | /* Format the request message. */ | 744 | /* Format the request message. */ |
748 | req = upc_alloc(); | 745 | req = kmalloc(sizeof(struct upc_req), GFP_KERNEL); |
749 | if (!req) | 746 | if (!req) |
750 | return -ENOMEM; | 747 | return -ENOMEM; |
751 | 748 | ||
@@ -802,12 +799,12 @@ static int coda_upcall(struct coda_sb_info *sbi, | |||
802 | } | 799 | } |
803 | 800 | ||
804 | error = -ENOMEM; | 801 | error = -ENOMEM; |
805 | sig_req = upc_alloc(); | 802 | sig_req = kmalloc(sizeof(struct upc_req), GFP_KERNEL); |
806 | if (!sig_req) goto exit; | 803 | if (!sig_req) goto exit; |
807 | 804 | ||
808 | CODA_ALLOC((sig_req->uc_data), char *, sizeof(struct coda_in_hdr)); | 805 | CODA_ALLOC((sig_req->uc_data), char *, sizeof(struct coda_in_hdr)); |
809 | if (!sig_req->uc_data) { | 806 | if (!sig_req->uc_data) { |
810 | upc_free(sig_req); | 807 | kfree(sig_req); |
811 | goto exit; | 808 | goto exit; |
812 | } | 809 | } |
813 | 810 | ||
@@ -827,7 +824,7 @@ static int coda_upcall(struct coda_sb_info *sbi, | |||
827 | wake_up_interruptible(&vcommp->vc_waitq); | 824 | wake_up_interruptible(&vcommp->vc_waitq); |
828 | 825 | ||
829 | exit: | 826 | exit: |
830 | upc_free(req); | 827 | kfree(req); |
831 | return error; | 828 | return error; |
832 | } | 829 | } |
833 | 830 | ||