]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ext2/file.c
fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers
[mirror_ubuntu-artful-kernel.git] / fs / ext2 / file.c
index 49eec9456c5b3dc47dbf4fa102e0c81c656beda5..82e06321de359176c20c9603ba1a9dee2b15b638 100644 (file)
@@ -40,13 +40,13 @@ static int ext2_release_file (struct inode * inode, struct file * filp)
        return 0;
 }
 
-int ext2_fsync(struct file *file, int datasync)
+int ext2_fsync(struct file *file, loff_t start, loff_t end, int datasync)
 {
        int ret;
        struct super_block *sb = file->f_mapping->host->i_sb;
        struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping;
 
-       ret = generic_file_fsync(file, datasync);
+       ret = generic_file_fsync(file, start, end, datasync);
        if (ret == -EIO || test_and_clear_bit(AS_EIO, &mapping->flags)) {
                /* We don't really know where the IO error happened... */
                ext2_error(sb, __func__,