mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -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
|
|
@ -1373,12 +1373,12 @@ static mode_t udf_convert_permissions(struct fileEntry *fe)
|
|||
return mode;
|
||||
}
|
||||
|
||||
int udf_write_inode(struct inode *inode, int sync)
|
||||
int udf_write_inode(struct inode *inode, struct writeback_control *wbc)
|
||||
{
|
||||
int ret;
|
||||
|
||||
lock_kernel();
|
||||
ret = udf_update_inode(inode, sync);
|
||||
ret = udf_update_inode(inode, wbc->sync_mode == WB_SYNC_ALL);
|
||||
unlock_kernel();
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ extern void udf_truncate(struct inode *);
|
|||
extern void udf_read_inode(struct inode *);
|
||||
extern void udf_delete_inode(struct inode *);
|
||||
extern void udf_clear_inode(struct inode *);
|
||||
extern int udf_write_inode(struct inode *, int);
|
||||
extern int udf_write_inode(struct inode *, struct writeback_control *wbc);
|
||||
extern long udf_block_map(struct inode *, sector_t);
|
||||
extern int udf_extend_file(struct inode *, struct extent_position *,
|
||||
struct kernel_long_ad *, sector_t);
|
||||
|
|
|
|||
Loading…
Reference in a new issue