[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>
This commit is contained in:
committed by
Linus Torvalds
parent
b71034e5e6
commit
9695ef16ed
@@ -666,7 +666,7 @@ struct ufs_buffer_head {
|
||||
};
|
||||
|
||||
struct ufs_cg_private_info {
|
||||
struct ufs_cylinder_group ucg;
|
||||
struct ufs_buffer_head c_ubh;
|
||||
__u32 c_cgx; /* number of cylidner group */
|
||||
__u16 c_ncyl; /* number of cyl's this cg */
|
||||
__u16 c_niblk; /* number of inode blocks this cg */
|
||||
|
Reference in New Issue
Block a user