ocfs2: Wrap xattr block reads in a dedicated function
authorJoel Becker <joel.becker@oracle.com>
Thu, 13 Nov 2008 22:49:18 +0000 (14:49 -0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:36:53 +0000 (08:36 -0800)
commit4ae1d69bedc8d174cb8a558694607e013157cde1
treece5c599415435d24ddc5cae88207f5f26c0a18b4
parenta22305cc693254a2aa651e797875669112ef8635
ocfs2: Wrap xattr block reads in a dedicated function

We weren't consistently checking xattr blocks after we read them.
Most places checked the signature, but none checked xb_blkno or
xb_fs_signature.  Create a toplevel ocfs2_read_xattr_block() that does
the read and the validation.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/xattr.c