patch-2.4.0-test9 linux/fs/minix/file.c
Next file: linux/fs/minix/fsync.c
Previous file: linux/fs/minix/bitmap.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Sep 27 19:23:40 2000
- Orig file:
v2.4.0-test8/linux/fs/minix/file.c
- Orig date:
Sat Feb 26 20:33:06 2000
diff -u --recursive --new-file v2.4.0-test8/linux/fs/minix/file.c linux/fs/minix/file.c
@@ -13,6 +13,8 @@
* We have mostly NULLs here: the current defaults are OK for
* the minix filesystem.
*/
+static int minix_sync_file(struct file *, struct dentry *, int);
+
struct file_operations minix_file_operations = {
read: generic_file_read,
write: generic_file_write,
@@ -23,3 +25,15 @@
struct inode_operations minix_file_inode_operations = {
truncate: minix_truncate,
};
+
+static int minix_sync_file(struct file * file,
+ struct dentry *dentry,
+ int datasync)
+{
+ struct inode *inode = dentry->d_inode;
+
+ if (INODE_VERSION(inode) == MINIX_V1)
+ return V1_minix_sync_file(inode);
+ else
+ return V2_minix_sync_file(inode);
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)