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
|
|
@ -188,7 +188,7 @@ extern const struct address_space_operations hfs_btree_aops;
|
|||
|
||||
extern struct inode *hfs_new_inode(struct inode *, struct qstr *, int);
|
||||
extern void hfs_inode_write_fork(struct inode *, struct hfs_extent *, __be32 *, __be32 *);
|
||||
extern int hfs_write_inode(struct inode *, int);
|
||||
extern int hfs_write_inode(struct inode *, struct writeback_control *);
|
||||
extern int hfs_inode_setattr(struct dentry *, struct iattr *);
|
||||
extern void hfs_inode_read_fork(struct inode *inode, struct hfs_extent *ext,
|
||||
__be32 log_size, __be32 phys_size, u32 clump_size);
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ void hfs_inode_write_fork(struct inode *inode, struct hfs_extent *ext,
|
|||
HFS_SB(inode->i_sb)->alloc_blksz);
|
||||
}
|
||||
|
||||
int hfs_write_inode(struct inode *inode, int unused)
|
||||
int hfs_write_inode(struct inode *inode, struct writeback_control *wbc)
|
||||
{
|
||||
struct inode *main_inode = inode;
|
||||
struct hfs_find_data fd;
|
||||
|
|
|
|||
Loading…
Reference in a new issue