* GPL HEADER END
*/
/*
- * Copyright (c) 2012 Intel, Inc.
+ * Copyright (c) 2012, 2013, Intel Corporation.
* Use is subject to license terms.
*
* Author: Johann Lombardi <johann.lombardi@intel.com>
* - lquota_disk_update_ver: update version of an index file
*/
-#ifndef EXPORT_SYMTAB
-# define EXPORT_SYMTAB
-#endif
-
#define DEBUG_SUBSYSTEM S_LQUOTA
#include "lquota_internal.h"
int rc;
ENTRY;
- OBD_ALLOC(name, sizeof("0x00000000-"));
+ OBD_ALLOC(name, LQUOTA_NAME_MAX);
if (name == NULL)
RETURN(-ENOMEM);
iops = &parent->do_index_ops->dio_it;
it = iops->init(env, parent, 0, BYPASS_CAPA);
if (IS_ERR(it)) {
- OBD_FREE(name, sizeof("0x00000000-"));
+ OBD_FREE(name, LQUOTA_NAME_MAX);
RETURN(PTR_ERR(it));
}
iops->put(env, it);
iops->fini(env, it);
- OBD_FREE(name, sizeof("0x00000000-"));
+ OBD_FREE(name, LQUOTA_NAME_MAX);
if (rc > 0)
rc = 0;
RETURN(rc);