diff options
author | Nikolay Borisov <nborisov@suse.com> | 2020-11-02 16:49:03 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:54:11 +0100 |
commit | 217f42eb3d321447910c45fc2bb2292aa0839fd6 (patch) | |
tree | 3f4a2cdeff441d9b88e154d637a638d44f9e8afe /fs/btrfs/ctree.h | |
parent | 03fcb1ab6f265725f13be932c7c24ca4ccb1a703 (diff) | |
download | linux-217f42eb3d321447910c45fc2bb2292aa0839fd6.tar.gz linux-217f42eb3d321447910c45fc2bb2292aa0839fd6.tar.bz2 linux-217f42eb3d321447910c45fc2bb2292aa0839fd6.zip |
btrfs: make btrfs_truncate_block take btrfs_inode
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index ea443d3215d0..cd86e15a5e16 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3068,8 +3068,8 @@ int btrfs_add_link(struct btrfs_trans_handle *trans, struct btrfs_inode *parent_inode, struct btrfs_inode *inode, const char *name, int name_len, int add_backref, u64 index); int btrfs_delete_subvolume(struct inode *dir, struct dentry *dentry); -int btrfs_truncate_block(struct inode *inode, loff_t from, loff_t len, - int front); +int btrfs_truncate_block(struct btrfs_inode *inode, loff_t from, loff_t len, + int front); int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_inode *inode, u64 new_size, |