From 7c44bf6a6f495c74e49721c0b6a0eddee24845a3 Mon Sep 17 00:00:00 2001 From: Joel Becker Date: Tue, 2 Dec 2008 17:44:05 -0800 Subject: [PATCH] --- yaml --- r: 125875 b: refs/heads/master c: 684ef278377725d505aa23259ee673dab9b11851 h: refs/heads/master i: 125873: 66fed38e3c8ef55234529c856ef969b027460e6a 125871: 741a8692760683711588bc7384545ede353b9c6a v: v3 --- [refs] | 2 +- trunk/fs/ocfs2/quota_global.c | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 00daa5bd425a..fba6fa0e93c7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 70ad1ba7b48364d758a112df0823edc5ca6632aa +refs/heads/master: 684ef278377725d505aa23259ee673dab9b11851 diff --git a/trunk/fs/ocfs2/quota_global.c b/trunk/fs/ocfs2/quota_global.c index a10faebe88a1..7dbcfd7f65e6 100644 --- a/trunk/fs/ocfs2/quota_global.c +++ b/trunk/fs/ocfs2/quota_global.c @@ -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);