Преглед изворни кода

HPFS: Implement fsync for hpfs

Implement fsync for hpfs.

Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Mikulas Patocka пре 14 година
родитељ
комит
bc8728ee56
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      fs/hpfs/file.c

+ 2 - 2
fs/hpfs/file.c

@@ -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);*/
-	return 0; /* Don't fsync :-) */
+	struct inode *inode = file->f_mapping->host;
+	return sync_blockdev(inode->i_sb->s_bdev);
 }
 }
 
 
 /*
 /*