mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
pass writeback_control to ->write_inode
This gives the filesystem more information about the writeback that is happening. Trond requested this for the NFS unstable write handling, and other filesystems might benefit from this too by beeing able to distinguish between the different callers in more detail. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
26821ed40b
commit
a9185b41a4
45 changed files with 115 additions and 72 deletions
|
|
@ -577,7 +577,7 @@ static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi,
|
|||
return i_pos;
|
||||
}
|
||||
|
||||
static int fat_write_inode(struct inode *inode, int wait)
|
||||
static int __fat_write_inode(struct inode *inode, int wait)
|
||||
{
|
||||
struct super_block *sb = inode->i_sb;
|
||||
struct msdos_sb_info *sbi = MSDOS_SB(sb);
|
||||
|
|
@ -634,9 +634,14 @@ retry:
|
|||
return err;
|
||||
}
|
||||
|
||||
static int fat_write_inode(struct inode *inode, struct writeback_control *wbc)
|
||||
{
|
||||
return __fat_write_inode(inode, wbc->sync_mode == WB_SYNC_ALL);
|
||||
}
|
||||
|
||||
int fat_sync_inode(struct inode *inode)
|
||||
{
|
||||
return fat_write_inode(inode, 1);
|
||||
return __fat_write_inode(inode, 1);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL_GPL(fat_sync_inode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue