summaryrefslogtreecommitdiffstats
path: root/fs/hpfs
diff options
context:
space:
mode:
authorMikulas Patocka2011-05-08 20:44:19 +0200
committerLinus Torvalds2011-05-09 18:04:24 +0200
commitbc8728ee56bca62df269b2dd159bc60838ac8e80 (patch)
treed750d7366d6415746dd9ac1f61e7da57177138c3 /fs/hpfs
parentHPFS: Fix a bug that filesystem was not marked dirty when remounting it (diff)
downloadkernel-qcow2-linux-bc8728ee56bca62df269b2dd159bc60838ac8e80.tar.gz
kernel-qcow2-linux-bc8728ee56bca62df269b2dd159bc60838ac8e80.tar.xz
kernel-qcow2-linux-bc8728ee56bca62df269b2dd159bc60838ac8e80.zip
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>
Diffstat (limited to 'fs/hpfs')
-rw-r--r--fs/hpfs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c
index 09a642f853e1..89c500ee5213 100644
--- a/fs/hpfs/file.c
+++ b/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)
{
- /*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);
}
/*