From e5f26dd13a8b41857cf1e49d9591fc0e19512f59 Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 31 May 2006 11:13:30 +0000 Subject: [PATCH] iam-uapi: don't use kzalloc (not yet available in all kernels), remove rw-semaphore: ->i_mutex will be used instead --- lustre/kernel_patches/patches/ext3-iam-uapi.patch | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lustre/kernel_patches/patches/ext3-iam-uapi.patch b/lustre/kernel_patches/patches/ext3-iam-uapi.patch index 86a399c..bb983d0 100644 --- a/lustre/kernel_patches/patches/ext3-iam-uapi.patch +++ b/lustre/kernel_patches/patches/ext3-iam-uapi.patch @@ -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; +} + -- 1.8.3.1