diff options
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/inode.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index d0a504c8feef..0ce143bd7d56 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -577,7 +577,7 @@ static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi, | |||
577 | return i_pos; | 577 | return i_pos; |
578 | } | 578 | } |
579 | 579 | ||
580 | static int fat_write_inode(struct inode *inode, int wait) | 580 | static int __fat_write_inode(struct inode *inode, int wait) |
581 | { | 581 | { |
582 | struct super_block *sb = inode->i_sb; | 582 | struct super_block *sb = inode->i_sb; |
583 | struct msdos_sb_info *sbi = MSDOS_SB(sb); | 583 | struct msdos_sb_info *sbi = MSDOS_SB(sb); |
@@ -634,9 +634,14 @@ retry: | |||
634 | return err; | 634 | return err; |
635 | } | 635 | } |
636 | 636 | ||
637 | static int fat_write_inode(struct inode *inode, struct writeback_control *wbc) | ||
638 | { | ||
639 | return __fat_write_inode(inode, wbc->sync_mode == WB_SYNC_ALL); | ||
640 | } | ||
641 | |||
637 | int fat_sync_inode(struct inode *inode) | 642 | int fat_sync_inode(struct inode *inode) |
638 | { | 643 | { |
639 | return fat_write_inode(inode, 1); | 644 | return __fat_write_inode(inode, 1); |
640 | } | 645 | } |
641 | 646 | ||
642 | EXPORT_SYMBOL_GPL(fat_sync_inode); | 647 | EXPORT_SYMBOL_GPL(fat_sync_inode); |