patch-2.4.0-prerelease linux/fs/ramfs/inode.c
Next file: linux/fs/romfs/Makefile
Previous file: linux/fs/ramfs/Makefile
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Dec 29 19:26:31 2000
- Orig file:
v2.4.0-test12/linux/fs/ramfs/inode.c
- Orig date:
Mon Dec 11 17:59:45 2000
diff -u --recursive --new-file v2.4.0-test12/linux/fs/ramfs/inode.c linux/fs/ramfs/inode.c
@@ -98,7 +98,7 @@
static int ramfs_commit_write(struct file *file, struct page *page, unsigned offset, unsigned to)
{
- struct inode *inode = (struct inode*)page->mapping->host;
+ struct inode *inode = page->mapping->host;
loff_t pos = ((loff_t)page->index << PAGE_CACHE_SHIFT) + to;
kunmap(page);
@@ -269,6 +269,11 @@
return error;
}
+static int ramfs_sync_file(struct file * file, struct dentry *dentry, int datasync)
+{
+ return 0;
+}
+
static struct address_space_operations ramfs_aops = {
readpage: ramfs_readpage,
writepage: ramfs_writepage,
@@ -279,12 +284,14 @@
static struct file_operations ramfs_file_operations = {
read: generic_file_read,
write: generic_file_write,
- mmap: generic_file_mmap
+ mmap: generic_file_mmap,
+ fsync: ramfs_sync_file,
};
static struct file_operations ramfs_dir_operations = {
read: generic_read_dir,
readdir: dcache_readdir,
+ fsync: ramfs_sync_file,
};
static struct inode_operations ramfs_dir_inode_operations = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)