-/*
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
* Lustre administrative quota format.
*
* from
loff_t offset = 0;
static const uint quota_magics[] = LUSTRE_INITQMAGICS;
static const uint quota_versions[] = LUSTRE_INITQVERSIONS;
-
+
fs = get_fs();
set_fs(KERNEL_DS);
size = f->f_op->read(f, (char *)&dqhead, sizeof(struct lustre_disk_dqheader), &offset);
}
/* Insert empty block to the list */
-static int put_free_dqblk(struct file *filp, struct lustre_mem_dqinfo *info,
+static int put_free_dqblk(struct file *filp, struct lustre_mem_dqinfo *info,
dqbuf_t buf, uint blk)
{
- struct lustre_disk_dqdbheader *dh = (struct lustre_disk_dqdbheader *)buf;
+ struct lustre_disk_dqdbheader *dh =(struct lustre_disk_dqdbheader *)buf;
int err;
dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk);
dh->dqdh_entries = cpu_to_le16(0);
info->dqi_free_blk = blk;
lustre_mark_info_dirty(info);
- if ((err = write_blk(filp, blk, buf)) < 0) /* Some strange block. We had better leave it... */
+ if ((err = write_blk(filp, blk, buf)) < 0)
+ /* Some strange block. We had better leave it... */
return err;
return 0;
}
/* write quotafile header */
dqhead.dqh_magic = cpu_to_le32(quota_magics[type]);
dqhead.dqh_version = cpu_to_le32(quota_versions[type]);
- size = fp->f_op->write(fp, (char *)&dqhead,
+ size = fp->f_op->write(fp, (char *)&dqhead,
sizeof(struct lustre_disk_dqheader), &offset);
if (size != sizeof(struct lustre_disk_dqheader)) {