diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-01-10 17:17:53 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-01-10 17:17:53 +0000 |
commit | b2ad5f821b1381492d792ca10b1eb7a107b48f14 (patch) | |
tree | 954a648692e7da983db1d2470953705f6a729264 /fs/ramfs/inode.c | |
parent | c9c06167e7933d93a6e396174c68abf242294abb (diff) |
Merge with Linux 2.4.0-prerelease. Big Makefile rewrite, test your
Makefiles.
Diffstat (limited to 'fs/ramfs/inode.c')
-rw-r--r-- | fs/ramfs/inode.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 36fa933a4..898ab8178 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -98,7 +98,7 @@ static int ramfs_prepare_write(struct file *file, struct page *page, unsigned of 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 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * 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 address_space_operations ramfs_aops = { 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 = { |