fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers
[deliverable/linux.git] / fs / hpfs / file.c
index 89c500ee521382c2250c0a818a3c18c773025ac8..89d2a5803ae35b6644507352124f512048f0513e 100644 (file)
@@ -18,9 +18,14 @@ static int hpfs_file_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-int hpfs_file_fsync(struct file *file, int datasync)
+int hpfs_file_fsync(struct file *file, loff_t start, loff_t end, int datasync)
 {
        struct inode *inode = file->f_mapping->host;
+       int ret;
+
+       ret = filemap_write_and_wait_range(file->f_mapping, start, end);
+       if (ret)
+               return ret;
        return sync_blockdev(inode->i_sb->s_bdev);
 }
 
This page took 0.106311 seconds and 5 git commands to generate.