diff options
Diffstat (limited to 'fs/ocfs2/quota_local.c')
-rw-r--r-- | fs/ocfs2/quota_local.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c index 1a2c50a759fa..9ad49305f450 100644 --- a/fs/ocfs2/quota_local.c +++ b/fs/ocfs2/quota_local.c | |||
@@ -3,6 +3,7 @@ | |||
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include <linux/fs.h> | 5 | #include <linux/fs.h> |
6 | #include <linux/slab.h> | ||
6 | #include <linux/quota.h> | 7 | #include <linux/quota.h> |
7 | #include <linux/quotaops.h> | 8 | #include <linux/quotaops.h> |
8 | #include <linux/module.h> | 9 | #include <linux/module.h> |
@@ -457,7 +458,7 @@ static int ocfs2_recover_local_quota_file(struct inode *lqinode, | |||
457 | break; | 458 | break; |
458 | } | 459 | } |
459 | dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; | 460 | dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; |
460 | for_each_bit(bit, rchunk->rc_bitmap, ol_chunk_entries(sb)) { | 461 | for_each_set_bit(bit, rchunk->rc_bitmap, ol_chunk_entries(sb)) { |
461 | qbh = NULL; | 462 | qbh = NULL; |
462 | status = ocfs2_read_quota_block(lqinode, | 463 | status = ocfs2_read_quota_block(lqinode, |
463 | ol_dqblk_block(sb, chunk, bit), | 464 | ol_dqblk_block(sb, chunk, bit), |
@@ -1325,7 +1326,7 @@ out: | |||
1325 | return status; | 1326 | return status; |
1326 | } | 1327 | } |
1327 | 1328 | ||
1328 | static struct quota_format_ops ocfs2_format_ops = { | 1329 | static const struct quota_format_ops ocfs2_format_ops = { |
1329 | .check_quota_file = ocfs2_local_check_quota_file, | 1330 | .check_quota_file = ocfs2_local_check_quota_file, |
1330 | .read_file_info = ocfs2_local_read_info, | 1331 | .read_file_info = ocfs2_local_read_info, |
1331 | .write_file_info = ocfs2_global_write_info, | 1332 | .write_file_info = ocfs2_global_write_info, |