X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fquota_v2.c;h=e12ca82cee113051ddc8cfc80b2bfa0c0a678515;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=679d31aca091c26ce257872dff145d3d7c418ae9;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/quota_v2.c b/fs/quota_v2.c index 679d31aca..e12ca82ce 100644 --- a/fs/quota_v2.c +++ b/fs/quota_v2.c @@ -357,7 +357,7 @@ static int do_insert_tree(struct dquot *dquot, uint *treeblk, int depth) 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())) @@ -376,14 +376,14 @@ static int do_insert_tree(struct dquot *dquot, uint *treeblk, int depth) 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; } @@ -510,7 +510,7 @@ static int remove_tree(struct dquot *dquot, uint *blk, int depth) dqbuf_t buf = getdqbuf(); int ret = 0; uint newblk; - u32 *ref = (u32 *)buf; + __le32 *ref = (__le32 *)buf; if (!buf) return -ENOMEM; @@ -595,7 +595,7 @@ static loff_t find_tree_dqentry(struct dquot *dquot, uint blk, int depth) 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;