From: Joel Becker Date: Thu, 13 Nov 2008 22:49:14 +0000 (-0800) Subject: ocfs2: Wrap group descriptor reads in a dedicated function. X-Git-Tag: v2.6.29-rc1~505^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68f64d471be38631d7196b938d9809802dd467fa;p=pandora-kernel.git 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 Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed