projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: More name changes
[yaffs2.git]
/
yaffs_vfs_single.c
diff --git
a/yaffs_vfs.c
b/yaffs_vfs_single.c
similarity index 99%
rename from
yaffs_vfs.c
rename to
yaffs_vfs_single.c
index b1b6840939de4426e808a56ef4e9f16cdc54d3a5..63f0e3db8181f5b3405266c87930e3fe4a0582fc 100644
(file)
--- a/
yaffs_vfs.c
+++ b/
yaffs_vfs_single.c
@@
-575,15
+575,9
@@
static struct dentry *yaffs_lookup(struct inode *dir, struct dentry *dentry,
if (inode) {
T(YAFFS_TRACE_OS,
(TSTR("yaffs_loookup dentry \n")));
if (inode) {
T(YAFFS_TRACE_OS,
(TSTR("yaffs_loookup dentry \n")));
-/* #if 0 asserted by NCB for 2.5/6 compatability - falls through to
- * d_add even if NULL inode */
-#if 0
- /*dget(dentry); // try to solve directory bug */
d_add(dentry, inode);
d_add(dentry, inode);
-
/* return dentry; */
return NULL;
/* return dentry; */
return NULL;
-#endif
}
} else {
}
} else {
@@
-591,8
+585,6
@@
static struct dentry *yaffs_lookup(struct inode *dir, struct dentry *dentry,
}
}
-/* added NCB for 2.5/6 compatability - forces add even if inode is
- * NULL which creates dentry hash */
d_add(dentry, inode);
return NULL;
d_add(dentry, inode);
return NULL;
@@
-2200,7
+2192,7
@@
static struct super_block *yaffs_internal_read_super(int yaffs_version,
struct super_block *sb,
void *data, int silent)
{
struct super_block *sb,
void *data, int silent)
{
- int n
B
locks;
+ int n
_b
locks;
struct inode *inode = NULL;
struct dentry *root;
yaffs_dev_t *dev = 0;
struct inode *inode = NULL;
struct dentry *root;
yaffs_dev_t *dev = 0;
@@
-2407,10
+2399,10
@@
static struct super_block *yaffs_internal_read_super(int yaffs_version,
/* Set up the memory size parameters.... */
/* Set up the memory size parameters.... */
- n
B
locks = YCALCBLOCKS(mtd->size, (YAFFS_CHUNKS_PER_BLOCK * YAFFS_BYTES_PER_CHUNK));
+ n
_b
locks = YCALCBLOCKS(mtd->size, (YAFFS_CHUNKS_PER_BLOCK * YAFFS_BYTES_PER_CHUNK));
param->start_block = 0;
param->start_block = 0;
- param->end_block = n
B
locks - 1;
+ param->end_block = n
_b
locks - 1;
param->chunks_per_block = YAFFS_CHUNKS_PER_BLOCK;
param->total_bytes_per_chunk = YAFFS_BYTES_PER_CHUNK;
param->n_reserved_blocks = 5;
param->chunks_per_block = YAFFS_CHUNKS_PER_BLOCK;
param->total_bytes_per_chunk = YAFFS_BYTES_PER_CHUNK;
param->n_reserved_blocks = 5;
@@
-2467,10
+2459,10
@@
static struct super_block *yaffs_internal_read_super(int yaffs_version,
param->is_yaffs2 = 1;
param->total_bytes_per_chunk = mtd->writesize;
param->chunks_per_block = mtd->erasesize / mtd->writesize;
param->is_yaffs2 = 1;
param->total_bytes_per_chunk = mtd->writesize;
param->chunks_per_block = mtd->erasesize / mtd->writesize;
- n
B
locks = YCALCBLOCKS(mtd->size, mtd->erasesize);
+ n
_b
locks = YCALCBLOCKS(mtd->size, mtd->erasesize);
param->start_block = 0;
param->start_block = 0;
- param->end_block = n
B
locks - 1;
+ param->end_block = n
_b
locks - 1;
} else {
/* use the MTD interface in yaffs_mtdif1.c */
param->write_chunk_tags_fn =
} else {
/* use the MTD interface in yaffs_mtdif1.c */
param->write_chunk_tags_fn =