]> err.no Git - linux-2.6/commit
[PATCH] ufs: wrong type cast
authorEvgeniy Dushistov <dushistov@mail.ru>
Sun, 25 Jun 2006 12:47:22 +0000 (05:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:02 +0000 (10:01 -0700)
commit9695ef16ed4e00b59303f39f9a4a422a2c6a3b89
treefba8946e86a523a5d53936cf5ec9e0a150037f73
parentb71034e5e67d1577424cebe7bbb7d0ce134a4cd8
[PATCH] ufs: wrong type cast

There are two ugly macros in ufs code:
#define UCPI_UBH ((struct ufs_buffer_head *)ucpi)
#define USPI_UBH ((struct ufs_buffer_head *)uspi)
when uspi looks like
struct {
struct ufs_buffer_head ;
}
and USPI_UBH has some sence,
ucpi looks like
struct {
struct not_ufs_buffer_head;
}

To prevent bugs in future, this patch convert macros to inline function and
fix "ucpi" structure.

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ufs/balloc.c
fs/ufs/cylinder.c
fs/ufs/ialloc.c
fs/ufs/super.c
fs/ufs/util.c
fs/ufs/util.h
include/linux/ufs_fs.h