projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch from Sergey Kubushyn [ksi@koi8.net]
[yaffs2.git]
/
yaffs_fs.c
diff --git
a/yaffs_fs.c
b/yaffs_fs.c
index 0a7c39613b9c3aeb0905e180c92231d9bb9e85dd..14fd0b8d04906ad39a955fdf506a58f5c24af311 100644
(file)
--- a/
yaffs_fs.c
+++ b/
yaffs_fs.c
@@
-31,7
+31,7
@@
*/
const char *yaffs_fs_c_version =
*/
const char *yaffs_fs_c_version =
- "$Id: yaffs_fs.c,v 1.3
1 2005-09-21 01:14:03 charles
Exp $";
+ "$Id: yaffs_fs.c,v 1.3
3 2005-10-27 22:24:04 marty
Exp $";
extern const char *yaffs_guts_c_version;
#include <linux/config.h>
extern const char *yaffs_guts_c_version;
#include <linux/config.h>
@@
-604,9
+604,10
@@
static int yaffs_commit_write(struct file *f, struct page *pg, unsigned offset,
}
T(YAFFS_TRACE_OS,
}
T(YAFFS_TRACE_OS,
- (KERN_DEBUG "yaffs_commit_write returning %d\n", nWritten));
+ (KERN_DEBUG "yaffs_commit_write returning %d\n",
+ nWritten == nBytes ? 0 : -1));
- return nWritten;
+ return nWritten
== nBytes ? 0 : -1
;
}
}
@@
-1492,7
+1493,7
@@
static struct super_block *yaffs_internal_read_super(int yaffsVersion,
static int yaffs_internal_read_super_mtd(struct super_block *sb, void *data,
int silent)
{
static int yaffs_internal_read_super_mtd(struct super_block *sb, void *data,
int silent)
{
- return yaffs_internal_read_super(1, sb, data, silent) ? 0 : -
1
;
+ return yaffs_internal_read_super(1, sb, data, silent) ? 0 : -
EINVAL
;
}
static struct super_block *yaffs_read_super(struct file_system_type *fs,
}
static struct super_block *yaffs_read_super(struct file_system_type *fs,
@@
-1529,7
+1530,7
@@
static DECLARE_FSTYPE(yaffs_fs_type, "yaffs", yaffs_read_super,
static int yaffs2_internal_read_super_mtd(struct super_block *sb, void *data,
int silent)
{
static int yaffs2_internal_read_super_mtd(struct super_block *sb, void *data,
int silent)
{
- return yaffs_internal_read_super(2, sb, data, silent) ? 0 : -
1
;
+ return yaffs_internal_read_super(2, sb, data, silent) ? 0 : -
EINVAL
;
}
static struct super_block *yaffs2_read_super(struct file_system_type *fs,
}
static struct super_block *yaffs2_read_super(struct file_system_type *fs,