summaryrefslogtreecommitdiff
path: root/quotaio_v2.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2001-09-25 15:56:59 +0000
committerjkar8572 <jkar8572>2001-09-25 15:56:59 +0000
commit48448ca24e00e530e59d774bfdb3c2a76616330c (patch)
treee4d9c17dbb086945bfa1acc59e5d0bba1156f211 /quotaio_v2.c
parentd9b70c744b212ede06d4487e134c9aaca084e037 (diff)
repquota now buffers entries to be printed when resolving is needed (major speedup).
Workaround for bug in RH 7.1 kernel (Anders Blomdell)
Diffstat (limited to 'quotaio_v2.c')
-rw-r--r--quotaio_v2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/quotaio_v2.c b/quotaio_v2.c
index 76a3681..cd0d3c4 100644
--- a/quotaio_v2.c
+++ b/quotaio_v2.c
@@ -662,7 +662,6 @@ static int report_block(struct dquot *dquot, uint blk, char *bitmap,
dqbuf_t buf = getdqbuf();
struct v2_disk_dqdbheader *dh;
struct v2_disk_dqblk *ddata;
- char name[MAXNAMELEN];
int entries, i;
set_bit(bitmap, blk);
@@ -674,8 +673,7 @@ static int report_block(struct dquot *dquot, uint blk, char *bitmap,
if (!empty_dquot(ddata + i)) {
v2_disk2memdqblk(&dquot->dq_dqb, ddata + i);
dquot->dq_id = __le32_to_cpu(ddata[i].dqb_id);
- id2name(dquot->dq_id, dquot->dq_h->qh_type, name);
- if (process_dquot(dquot, name) < 0)
+ if (process_dquot(dquot, NULL) < 0)
break;
}
freedqbuf(buf);