Added support for 64 bit time to yaffs direct. These changes still need to be applied to the kernel and rtems.
Fix race yaffs_flush_inodes against iput needs inode->i_sb->s_inode_list_lock protects inode->i_sb->s_inodes, inode->i_sb_list Signed-off-by: chengchao <chengchao@kedacom.com>
Fix copyright Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs: fix missing checkpooint on yaffs remount For yaffs file system, the mode of reading or writing is restricted at four pointer where are mnt->mnt_flags,mnt->mnt_sb->s_flags,mtd->flags and dev->read_only,the first three is used handle file and file system(eg,remount) operation, and last one(dev->read_only) almost is used handle checkpoint of yaffs2. However, in current code, the dev->read_only only can be changed at first time when the yaffs2 file system is mounted, later it can't be changed again(eg,mount -o remount), the result is that the checkpoint's saving operation always can't succeed if you set readonly mode for yaffs2 file system when it is mounted at the first time. To fix this issue, we implement yaffs_remount_fs() which allows the rootfs to be remounted as r/w. Also fix one missing argument in yaffs_flush_whole_cache() call. Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Fix vfs calls to yaffs_flush_file Add extra argument. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Apply fixes in cisco patch to yaffs_vfs_single Cisco patched the multi version. This manually drags the fixes to the single version too. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Clean ups Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Remove trace that should not be in mounting. This was erroneously added as part of the large file size changes. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Clean up checkin. Do not use This is a clean-up checkin that should have been on a branch. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Add large file support changes to yaffs_vfs_single.c Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Add Waldemar's patches for Linux 3.2 Also rolled in some suggestions for the multi-version code. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Mods for Linux 3.0 and fix a typo Roll in NCB's patch and some other changes for Linux 3.0. Also fix a dumb type retired_writes->retried_writes Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs: More mainlining cleanup Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs Handle ENOSPC properly during object creation Was returning ENOMEM. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs: Update year to 2011 in copyrights etc. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs: Clean up as per Ryan's comments Clean up a whole lot of code issues raised by Ryan. Some further reformatting etc to be mor kernel friendly. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs: Fix compilation errors introduced by cleanup. Minor types. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs: Reformatting to be kernel friendly. Passes checkpatch.pl Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs: Sort out issues raised by Coverity Coverity checks raised some issues, particularly with NULL checks. Fix them. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs: Strip pointless macro wrapping These wrapping helped nothing. Out... out! Signed-off-by: Charles Manning <cdhmanning@gmail.com>