vserver 1.9.3
[linux-2.6.git] / fs / quota_v2.c
index 679d31a..e12ca82 100644 (file)
@@ -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;