udf: remove UDF_I_* macros and open code them
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Acked-by: Jan Kara <jack@suse.cz> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
5e0f001736
commit
c0b344385f
@ -24,14 +24,14 @@
|
||||
#define UDF_PATH_LEN 1023
|
||||
|
||||
#define udf_file_entry_alloc_offset(inode)\
|
||||
(UDF_I_USE(inode) ?\
|
||||
(UDF_I(inode)->i_use ?\
|
||||
sizeof(struct unallocSpaceEntry) :\
|
||||
((UDF_I_EFE(inode) ?\
|
||||
((UDF_I(inode)->i_efe ?\
|
||||
sizeof(struct extendedFileEntry) :\
|
||||
sizeof(struct fileEntry)) + UDF_I_LENEATTR(inode)))
|
||||
sizeof(struct fileEntry)) + UDF_I(inode)->i_lenEAttr))
|
||||
|
||||
#define udf_ext0_offset(inode)\
|
||||
(UDF_I_ALLOCTYPE(inode) == ICBTAG_FLAG_AD_IN_ICB ?\
|
||||
(UDF_I(inode)->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB ?\
|
||||
udf_file_entry_alloc_offset(inode) : 0)
|
||||
|
||||
#define udf_get_lb_pblock(sb,loc,offset) udf_get_pblock((sb), (loc).logicalBlockNum, (loc).partitionReferenceNum, (offset))
|
||||
|
Reference in New Issue
Block a user