|
@@ -75,7 +75,7 @@ static void dump_completed_IO(struct inode * inode)
|
|
|
* to written.
|
|
* to written.
|
|
|
* The function return the number of pending IOs on success.
|
|
* The function return the number of pending IOs on success.
|
|
|
*/
|
|
*/
|
|
|
-static int flush_completed_IO(struct inode *inode)
|
|
|
|
|
|
|
+extern int ext4_flush_completed_IO(struct inode *inode)
|
|
|
{
|
|
{
|
|
|
ext4_io_end_t *io;
|
|
ext4_io_end_t *io;
|
|
|
struct ext4_inode_info *ei = EXT4_I(inode);
|
|
struct ext4_inode_info *ei = EXT4_I(inode);
|
|
@@ -169,7 +169,7 @@ int ext4_sync_file(struct file *file, int datasync)
|
|
|
if (inode->i_sb->s_flags & MS_RDONLY)
|
|
if (inode->i_sb->s_flags & MS_RDONLY)
|
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
|
|
- ret = flush_completed_IO(inode);
|
|
|
|
|
|
|
+ ret = ext4_flush_completed_IO(inode);
|
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|