patch-2.4.15 linux/fs/minix/file.c

Next file: linux/fs/namespace.c
Previous file: linux/fs/jffs2/nodelist.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/fs/minix/file.c linux/fs/minix/file.c
@@ -30,8 +30,10 @@
 int minix_sync_file(struct file * file, struct dentry *dentry, int datasync)
 {
 	struct inode *inode = dentry->d_inode;
-	int err  = fsync_inode_buffers(inode);
+	int err;
 
+	err = fsync_inode_buffers(inode);
+	err |= fsync_inode_data_buffers(inode);
 	if (!(inode->i_state & I_DIRTY))
 		return err;
 	if (datasync && !(inode->i_state & I_DIRTY_DATASYNC))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)