diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-02-20 14:50:34 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-28 13:30:06 +0300 |
commit | 6ef06d27903d9c15505dc1a3ccf424f5018562f7 (patch) | |
tree | 220b20eaf436246c9769209b24fc1ace523bfeb5 /fs/btrfs/transaction.c | |
parent | 877574e2548bbfd792b0b1200d4b46eef54c05f5 (diff) | |
download | linux-6ef06d27903d9c15505dc1a3ccf424f5018562f7.tar.xz |
btrfs: Make btrfs_i_size_write take btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 05c2bbff2a28..61b807de3e16 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1653,7 +1653,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, goto fail; } - btrfs_i_size_write(parent_inode, parent_inode->i_size + + btrfs_i_size_write(BTRFS_I(parent_inode), parent_inode->i_size + dentry->d_name.len * 2); parent_inode->i_mtime = parent_inode->i_ctime = current_time(parent_inode); |