patch-2.4.15 linux/fs/sysv/file.c
Next file: linux/fs/sysv/ialloc.c
Previous file: linux/fs/sysv/dir.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Nov 20 21:34:13 2001
- Orig file:
v2.4.14/linux/fs/sysv/file.c
- Orig date:
Mon Aug 27 12:41:47 2001
diff -u --recursive --new-file v2.4.14/linux/fs/sysv/file.c linux/fs/sysv/file.c
@@ -30,14 +30,15 @@
struct inode_operations sysv_file_inode_operations = {
truncate: sysv_truncate,
- setattr: sysv_notify_change,
};
int sysv_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)