projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Trying to find a bug in timothy quick tests.
[yaffs2.git]
/
yaffs_getblockinfo.h
diff --git
a/yaffs_getblockinfo.h
b/yaffs_getblockinfo.h
index b9742ac0ab3c00b5e333e4ac6ec67b3950ad4ad5..108c361261049ac2bb6ddf0df8af3f388fcdc1f0 100644
(file)
--- a/
yaffs_getblockinfo.h
+++ b/
yaffs_getblockinfo.h
@@
-1,7
+1,7
@@
/*
/*
- * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
*
- * Copyright (C) 2002-20
07
Aleph One Ltd.
+ * Copyright (C) 2002-20
10
Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@
-17,18
+17,20
@@
#define __YAFFS_GETBLOCKINFO_H__
#include "yaffs_guts.h"
#define __YAFFS_GETBLOCKINFO_H__
#include "yaffs_guts.h"
+#include "yaffs_trace.h"
/* Function to manipulate block info */
/* Function to manipulate block info */
-static Y_INLINE yaffs_BlockInfo *yaffs_GetBlockInfo(yaffs_Device * dev, int blk)
+static Y_INLINE struct yaffs_block_info *yaffs_get_block_info(struct yaffs_dev
+ *dev, int blk)
{
{
- if (blk < dev->internal
StartBlock || blk > dev->internalEndB
lock) {
+ if (blk < dev->internal
_start_block || blk > dev->internal_end_b
lock) {
T(YAFFS_TRACE_ERROR,
(TSTR
T(YAFFS_TRACE_ERROR,
(TSTR
- ("**>> yaffs: get
BlockI
nfo block %d is not valid" TENDSTR),
+ ("**>> yaffs: get
_block_i
nfo block %d is not valid" TENDSTR),
blk));
YBUG();
}
blk));
YBUG();
}
- return &dev->block
Info[blk - dev->internalStartB
lock];
+ return &dev->block
_info[blk - dev->internal_start_b
lock];
}
#endif
}
#endif