diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-11-13 23:49:14 +0100 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 17:36:53 +0100 |
commit | 68f64d471be38631d7196b938d9809802dd467fa (patch) | |
tree | b94f14b3a8b093dc52f2b034e7666b14c536f0d6 /crypto | |
parent | ocfs2: Consolidate validation of group descriptors. (diff) | |
download | linux-68f64d471be38631d7196b938d9809802dd467fa.tar.xz linux-68f64d471be38631d7196b938d9809802dd467fa.zip |
ocfs2: Wrap group descriptor reads in a dedicated function.
We have a clean call for validating group descriptors, but every place
that wants the always does a read_block()+validate() call pair. Create
a toplevel ocfs2_read_group_descriptor() that does the right
thing. This allows us to leverage the single call point later for
fancier handling. We also add validation of gd->bg_generation against
the superblock and gd->bg_blkno against the block we thought we read.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions