hfsplus: fix HFSPLUS_SB calling convention
authorChristoph Hellwig <hch@tuxera.com>
Fri, 1 Oct 2010 03:42:59 +0000 (05:42 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Oct 2010 03:42:59 +0000 (05:42 +0200)
commitdd73a01a30d729e8fa6f829c4582650e258e36f9
treebefe5a0bf762211d1a907ad11c15c4a21d7c4f74
parente753a62156e952fd5a3c64f98454d9aeee3a2546
hfsplus: fix HFSPLUS_SB calling convention

HFSPLUS_SB doesn't return a pointer to the hfsplus-specific superblock
information like all other FOO_SB macros, but dereference the pointer in a way
that made it look like a direct struct derefence.  This only works as long
as the HFSPLUS_SB macro is used directly and prevents us from keepig a local
hfsplus_sb_info pointer.  Fix the calling convention and introduce a local
sbi variable in all functions that use it constantly.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
13 files changed:
fs/hfsplus/bitmap.c
fs/hfsplus/btree.c
fs/hfsplus/catalog.c
fs/hfsplus/dir.c
fs/hfsplus/extents.c
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/inode.c
fs/hfsplus/ioctl.c
fs/hfsplus/options.c
fs/hfsplus/part_tbl.c
fs/hfsplus/super.c
fs/hfsplus/unicode.c
fs/hfsplus/wrapper.c