Whamcloud - gitweb
Minor tweak to match RH 2.4.18-14 function name in kernel.
authoradilger <adilger>
Tue, 22 Oct 2002 20:41:47 +0000 (20:41 +0000)
committeradilger <adilger>
Tue, 22 Oct 2002 20:41:47 +0000 (20:41 +0000)
lustre/patches/patch-2.4.18-chaos25

index 505f834..6dac001 100644 (file)
  }
  
 +/* Allocate a new handle.  This should probably be in a slab... */
-+static handle_t *get_handle(int nblocks)
++static handle_t *new_handle(int nblocks)
 +{
 +      handle_t *handle = jbd_kmalloc(sizeof (handle_t), GFP_NOFS);
 +      if (!handle)
 -      
 -      handle = jbd_kmalloc(sizeof (handle_t), GFP_NOFS);
 +
-+      handle = get_handle(nblocks);
++      handle = new_handle(nblocks);
        if (!handle)
                return ERR_PTR(-ENOMEM);
 -      memset (handle, 0, sizeof (handle_t));
 -      
 -      handle = jbd_kmalloc(sizeof (handle_t), GFP_NOFS);
 +
-+      handle = get_handle(nblocks);
++      handle = new_handle(nblocks);
        if (!handle)
                return ERR_PTR(-ENOMEM);
 -      memset (handle, 0, sizeof (handle_t));