Commit bc8728ee authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Linus Torvalds

HPFS: Implement fsync for hpfs

Implement fsync for hpfs.
Signed-off-by: default avatarMikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent dab4c82a
...@@ -20,8 +20,8 @@ static int hpfs_file_release(struct inode *inode, struct file *file) ...@@ -20,8 +20,8 @@ static int hpfs_file_release(struct inode *inode, struct file *file)
int hpfs_file_fsync(struct file *file, int datasync) int hpfs_file_fsync(struct file *file, int datasync)
{ {
/*return file_fsync(file, datasync);*/ struct inode *inode = file->f_mapping->host;
return 0; /* Don't fsync :-) */ return sync_blockdev(inode->i_sb->s_bdev);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment