Whamcloud - gitweb
iam-uapi: don't use kzalloc (not yet available in all kernels), remove rw-semaphore...
authornikita <nikita>
Wed, 31 May 2006 11:13:30 +0000 (11:13 +0000)
committernikita <nikita>
Wed, 31 May 2006 11:13:30 +0000 (11:13 +0000)
lustre/kernel_patches/patches/ext3-iam-uapi.patch

index 86a399c..bb983d0 100644 (file)
@@ -50,8 +50,8 @@ Index: iam/fs/ext3/file.c
 Index: iam/fs/ext3/iam-uapi.c
 ===================================================================
 --- iam.orig/fs/ext3/iam-uapi.c        2004-04-06 17:27:52.000000000 +0400
-+++ iam/fs/ext3/iam-uapi.c     2006-05-30 23:08:12.000000000 +0400
-@@ -0,0 +1,164 @@
++++ iam/fs/ext3/iam-uapi.c     2006-05-31 13:27:27.000000000 +0400
+@@ -0,0 +1,163 @@
 +/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
 + * vim:expandtab:shiftwidth=8:tabstop=8:
 + *
@@ -100,7 +100,6 @@ Index: iam/fs/ext3/iam-uapi.c
 +        struct iam_container   ipi_bag;
 +        struct iam_descr       ipi_descr;
 +        struct iam_path_descr *ipi_ipd;
-+        struct rw_semaphore    ipi_sem;
 +};
 +
 +struct iam_private_info *get_ipi(struct file *filp)
@@ -112,9 +111,9 @@ Index: iam/fs/ext3/iam-uapi.c
 +{
 +        struct iam_private_info *info;
 +
-+        info = kzalloc(sizeof *info, flags);
++        info = kmalloc(sizeof *info, flags);
 +        if (info != NULL)
-+                init_rwsem(&info->ipi_sem);
++                memset(info, 0, sizeof *info);
 +        return info;
 +}
 +