Skip to content

Commit

Permalink
HPFS: Implement fsync for hpfs
Browse files Browse the repository at this point in the history
Implement fsync for hpfs.

Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mikulas Patocka authored and torvalds committed May 9, 2011
1 parent dab4c82 commit bc8728e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/hpfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit bc8728e

Please sign in to comment.