[GFS2] Macros removal in gfs2.h
As suggested by Pekka Enberg <penberg@cs.helsinki.fi>. The DIV_RU macro is renamed DIV_ROUND_UP and and moved to kernel.h The other macros are gone from gfs2.h as (although not requested by Pekka Enberg) are a number of included header file which are now included individually. The inode number comparison function is now an inline function. The DT2IF and IF2DT may be addressed in a future patch. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
@@ -50,15 +50,18 @@
|
||||
* An on-disk inode number
|
||||
*/
|
||||
|
||||
#define gfs2_inum_equal(ino1, ino2) \
|
||||
(((ino1)->no_formal_ino == (ino2)->no_formal_ino) && \
|
||||
((ino1)->no_addr == (ino2)->no_addr))
|
||||
|
||||
struct gfs2_inum {
|
||||
__be64 no_formal_ino;
|
||||
__be64 no_addr;
|
||||
};
|
||||
|
||||
static inline int gfs2_inum_equal(const struct gfs2_inum *ino1,
|
||||
const struct gfs2_inum *ino2)
|
||||
{
|
||||
return ino1->no_formal_ino == ino2->no_formal_ino &&
|
||||
ino1->no_addr == ino2->no_addr;
|
||||
}
|
||||
|
||||
/*
|
||||
* Generic metadata head structure
|
||||
* Every inplace buffer logged in the journal must start with this.
|
||||
|
Reference in New Issue
Block a user