struct file *filp = sb_dqopt(dquot->dq_sb)->files[dquot->dq_type];
dqbuf_t buf;
int ret = 0, newson = 0, newact = 0;
- u32 *ref;
+ __le32 *ref;
uint newblk;
if (!(buf = getdqbuf()))
goto out_buf;
}
}
- ref = (u32 *)buf;
+ ref = (__le32 *)buf;
newblk = le32_to_cpu(ref[GETIDINDEX(dquot->dq_id, depth)]);
if (!newblk)
newson = 1;
if (depth == V2_DQTREEDEPTH-1) {
#ifdef __QUOTA_V2_PARANOIA
if (newblk) {
- printk(KERN_ERR "VFS: Inserting already present quota entry (block %u).\n", ref[GETIDINDEX(dquot->dq_id, depth)]);
+ printk(KERN_ERR "VFS: Inserting already present quota entry (block %u).\n", le32_to_cpu(ref[GETIDINDEX(dquot->dq_id, depth)]));
ret = -EIO;
goto out_buf;
}
dqbuf_t buf = getdqbuf();
int ret = 0;
uint newblk;
- u32 *ref = (u32 *)buf;
+ __le32 *ref = (__le32 *)buf;
if (!buf)
return -ENOMEM;
struct file *filp = sb_dqopt(dquot->dq_sb)->files[dquot->dq_type];
dqbuf_t buf = getdqbuf();
loff_t ret = 0;
- u32 *ref = (u32 *)buf;
+ __le32 *ref = (__le32 *)buf;
if (!buf)
return -ENOMEM;