whitespace fixes. no code changes
This commit is contained in:
@ -244,15 +244,15 @@ static ALWAYS_INLINE unsigned div_roundup(unsigned size, unsigned n)
|
||||
return (size + n-1) / n;
|
||||
}
|
||||
|
||||
#if ENABLE_FEATURE_MINIX2
|
||||
#define INODE_BLOCKS div_roundup(INODES, (version2 ? MINIX2_INODES_PER_BLOCK \
|
||||
: MINIX1_INODES_PER_BLOCK))
|
||||
#if !ENABLE_FEATURE_MINIX2
|
||||
#define INODE_BLOCKS div_roundup(INODES, MINIX1_INODES_PER_BLOCK)
|
||||
#else
|
||||
#define INODE_BLOCKS div_roundup(INODES, MINIX1_INODES_PER_BLOCK)
|
||||
#define INODE_BLOCKS div_roundup(INODES, \
|
||||
(version2 ? MINIX2_INODES_PER_BLOCK : MINIX1_INODES_PER_BLOCK))
|
||||
#endif
|
||||
|
||||
#define INODE_BUFFER_SIZE (INODE_BLOCKS * BLOCK_SIZE)
|
||||
#define NORM_FIRSTZONE (2 + IMAPS + ZMAPS + INODE_BLOCKS)
|
||||
#define INODE_BUFFER_SIZE (INODE_BLOCKS * BLOCK_SIZE)
|
||||
#define NORM_FIRSTZONE (2 + IMAPS + ZMAPS + INODE_BLOCKS)
|
||||
|
||||
/* Before you ask "where they come from?": */
|
||||
/* setbit/clrbit are supplied by sys/param.h */
|
||||
|
@ -300,9 +300,9 @@ static void make_device(char *path, int delete)
|
||||
|
||||
/* File callback for /sys/ traversal */
|
||||
static int fileAction(const char *fileName,
|
||||
struct stat *statbuf ATTRIBUTE_UNUSED,
|
||||
void *userData,
|
||||
int depth ATTRIBUTE_UNUSED)
|
||||
struct stat *statbuf ATTRIBUTE_UNUSED,
|
||||
void *userData,
|
||||
int depth ATTRIBUTE_UNUSED)
|
||||
{
|
||||
size_t len = strlen(fileName) - 4; /* can't underflow */
|
||||
char *scratch = userData;
|
||||
@ -320,9 +320,9 @@ static int fileAction(const char *fileName,
|
||||
|
||||
/* Directory callback for /sys/ traversal */
|
||||
static int dirAction(const char *fileName ATTRIBUTE_UNUSED,
|
||||
struct stat *statbuf ATTRIBUTE_UNUSED,
|
||||
void *userData ATTRIBUTE_UNUSED,
|
||||
int depth)
|
||||
struct stat *statbuf ATTRIBUTE_UNUSED,
|
||||
void *userData ATTRIBUTE_UNUSED,
|
||||
int depth)
|
||||
{
|
||||
return (depth >= MAX_SYSFS_DEPTH ? SKIP : TRUE);
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ static ALWAYS_INLINE unsigned div_roundup(unsigned size, unsigned n)
|
||||
#else
|
||||
# define SB_ZONES (version2 ? SB.s_zones : SB.s_nzones)
|
||||
# define INODE_BLOCKS div_roundup(SB_INODES, \
|
||||
version2 ? MINIX2_INODES_PER_BLOCK : MINIX1_INODES_PER_BLOCK)
|
||||
(version2 ? MINIX2_INODES_PER_BLOCK : MINIX1_INODES_PER_BLOCK))
|
||||
#endif
|
||||
|
||||
#define INODE_BUFFER_SIZE (INODE_BLOCKS * BLOCK_SIZE)
|
||||
|
Reference in New Issue
Block a user