Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-4405 mdc: use ibits_known mask for lock match
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_quota_fmt.c
diff --git
a/lustre/osd-ldiskfs/osd_quota_fmt.c
b/lustre/osd-ldiskfs/osd_quota_fmt.c
index
6344142
..
6969ae5
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_quota_fmt.c
+++ b/
lustre/osd-ldiskfs/osd_quota_fmt.c
@@
-21,7
+21,7
@@
* GPL HEADER END
*/
/*
* GPL HEADER END
*/
/*
- * Copyright (c) 201
1, 2012, Whamcloud, Inc
.
+ * Copyright (c) 201
2, Intel Corporation
.
* Use is subject to license terms.
*
* Lustre administrative quota format.
* Use is subject to license terms.
*
* Lustre administrative quota format.
@@
-40,7
+40,7
@@
static const union
static inline dqbuf_t getdqbuf(void)
{
static inline dqbuf_t getdqbuf(void)
{
- dqbuf_t buf =
cfs_alloc(LUSTRE_DQBLKSIZE, CFS_ALLOC
_IO);
+ dqbuf_t buf =
kmalloc(LUSTRE_DQBLKSIZE, __GFP
_IO);
if (!buf)
CWARN("Not enough memory for quota buffers.\n");
return buf;
if (!buf)
CWARN("Not enough memory for quota buffers.\n");
return buf;
@@
-48,7
+48,7
@@
static inline dqbuf_t getdqbuf(void)
static inline void freedqbuf(dqbuf_t buf)
{
static inline void freedqbuf(dqbuf_t buf)
{
-
cfs_
free(buf);
+
k
free(buf);
}
/**
}
/**
@@
-218,7
+218,7
@@
int walk_block_dqentry(const struct lu_env *env, struct osd_object *obj,
int type, uint blk, uint index,
struct osd_it_quota *it)
{
int type, uint blk, uint index,
struct osd_it_quota *it)
{
- dqbuf_t buf
= getdqbuf()
;
+ dqbuf_t buf;
loff_t ret = 0;
struct lustre_disk_dqdbheader *dqhead;
int i, dqblk_sz;
loff_t ret = 0;
struct lustre_disk_dqdbheader *dqhead;
int i, dqblk_sz;
@@
-232,6
+232,7
@@
int walk_block_dqentry(const struct lu_env *env, struct osd_object *obj,
RETURN(1);
}
RETURN(1);
}
+ buf = getdqbuf();
dqhead = (struct lustre_disk_dqdbheader *)buf;
dqblk_sz = sizeof(struct lustre_disk_dqblk_v2);
if (!buf)
dqhead = (struct lustre_disk_dqdbheader *)buf;
dqblk_sz = sizeof(struct lustre_disk_dqblk_v2);
if (!buf)