summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/quota_local.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2008-11-25 07:21:36 +0800
committerMark Fasheh <mfasheh@suse.com>2009-01-05 08:40:26 -0800
commitdf32b3343aa11e0c7f54783594b24321d17d376f (patch)
tree5d8f864cdbbb60af5f0eb62e7e9c4f0ef1bdbd08 /fs/ocfs2/quota_local.c
parente35ff98f7c37b7bc901b4b90a66a0287565e456c (diff)
downloadop-kernel-dev-df32b3343aa11e0c7f54783594b24321d17d376f.zip
op-kernel-dev-df32b3343aa11e0c7f54783594b24321d17d376f.tar.gz
ocfs2/quota: sparse fixes for quota
Fix 2 minor things in quota. They are both found by sparse check. 1. an endian bug in ocfs2_local_quota_add_chunk. 2. change olq_alloc_dquot to static. Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/quota_local.c')
-rw-r--r--fs/ocfs2/quota_local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c
index b5ddb22e..d451b71 100644
--- a/fs/ocfs2/quota_local.c
+++ b/fs/ocfs2/quota_local.c
@@ -988,7 +988,7 @@ static struct ocfs2_quota_chunk *ocfs2_local_quota_add_chunk(
goto out_trans;
}
lock_buffer(bh);
- dchunk->dqc_free = ol_quota_entries_per_block(sb);
+ dchunk->dqc_free = cpu_to_le32(ol_quota_entries_per_block(sb));
memset(dchunk->dqc_bitmap, 0,
sb->s_blocksize - sizeof(struct ocfs2_local_disk_chunk) -
OCFS2_QBLK_RESERVED_SPACE);
@@ -1110,7 +1110,7 @@ out:
return ERR_PTR(status);
}
-void olq_alloc_dquot(struct buffer_head *bh, void *private)
+static void olq_alloc_dquot(struct buffer_head *bh, void *private)
{
int *offset = private;
struct ocfs2_local_disk_chunk *dchunk;
OpenPOWER on IntegriCloud