Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125875
b: refs/heads/master
c: 684ef27
h: refs/heads/master
i:
  125873: 66fed38
  125871: 741a869
v: v3
  • Loading branch information
Joel Becker authored and Mark Fasheh committed Jan 5, 2009
1 parent 62e40ff commit 7c44bf6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70ad1ba7b48364d758a112df0823edc5ca6632aa
refs/heads/master: 684ef278377725d505aa23259ee673dab9b11851
14 changes: 13 additions & 1 deletion trunk/fs/ocfs2/quota_global.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,25 @@ struct qtree_fmt_operations ocfs2_global_ops = {
.is_id = ocfs2_global_is_id,
};

static int ocfs2_validate_quota_block(struct super_block *sb,
struct buffer_head *bh)
{
struct ocfs2_disk_dqtrailer *dqt = ocfs2_dq_trailer(sb, bh->b_data);

mlog(0, "Validating quota block %llu\n",
(unsigned long long)bh->b_blocknr);

return 0;
}

int ocfs2_read_quota_block(struct inode *inode, u64 v_block,
struct buffer_head **bh)
{
int rc = 0;
struct buffer_head *tmp = *bh;

rc = ocfs2_read_virt_blocks(inode, v_block, 1, &tmp, 0, NULL);
rc = ocfs2_read_virt_blocks(inode, v_block, 1, &tmp, 0,
ocfs2_validate_quota_block);
if (rc)
mlog_errno(rc);

Expand Down

0 comments on commit 7c44bf6

Please sign in to comment.