]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit144a535669ce05b9eb49966c24fe5daf3acad090
treece5c599415435d24ddc5cae88207f5f26c0a18b4
parent288b9ec2c9b595fe1d6ae2a08474b376a62e7681
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