diff options
Diffstat (limited to 'fs/fat/inode.c')
| -rw-r--r-- | fs/fat/inode.c | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 14da530b05ca..0ce143bd7d56 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
| @@ -558,7 +558,7 @@ static int fat_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
| 558 | buf->f_bavail = sbi->free_clusters; | 558 | buf->f_bavail = sbi->free_clusters; | 
| 559 | buf->f_fsid.val[0] = (u32)id; | 559 | buf->f_fsid.val[0] = (u32)id; | 
| 560 | buf->f_fsid.val[1] = (u32)(id >> 32); | 560 | buf->f_fsid.val[1] = (u32)(id >> 32); | 
| 561 | buf->f_namelen = sbi->options.isvfat ? 260 : 12; | 561 | buf->f_namelen = sbi->options.isvfat ? FAT_LFN_LEN : 12; | 
| 562 | 562 | ||
| 563 | return 0; | 563 | return 0; | 
| 564 | } | 564 | } | 
| @@ -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); | 
