提交 bc8728ee 编写于 作者: M Mikulas Patocka 提交者: Linus Torvalds

HPFS: Implement fsync for hpfs

Implement fsync for hpfs.
Signed-off-by: NMikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 dab4c82a
......@@ -20,8 +20,8 @@ static int hpfs_file_release(struct inode *inode, struct file *file)
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);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册