Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

btrfs: switch btrfs_pending_snapshot::dir to btrfs_inode

The structure is internal so we should use struct btrfs_inode for that.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>

+3 -3
+1 -1
fs/btrfs/ioctl.c
··· 855 855 pending_snapshot->dentry = dentry; 856 856 pending_snapshot->root = root; 857 857 pending_snapshot->readonly = readonly; 858 - pending_snapshot->dir = dir; 858 + pending_snapshot->dir = BTRFS_I(dir); 859 859 pending_snapshot->inherit = inherit; 860 860 861 861 trans = btrfs_start_transaction(root, 0);
+1 -1
fs/btrfs/transaction.c
··· 1637 1637 struct btrfs_root *root = pending->root; 1638 1638 struct btrfs_root *parent_root; 1639 1639 struct btrfs_block_rsv *rsv; 1640 - struct inode *parent_inode = pending->dir; 1640 + struct inode *parent_inode = &pending->dir->vfs_inode; 1641 1641 struct btrfs_path *path; 1642 1642 struct btrfs_dir_item *dir_item; 1643 1643 struct extent_buffer *tmp;
+1 -1
fs/btrfs/transaction.h
··· 172 172 173 173 struct btrfs_pending_snapshot { 174 174 struct dentry *dentry; 175 - struct inode *dir; 175 + struct btrfs_inode *dir; 176 176 struct btrfs_root *root; 177 177 struct btrfs_root_item *root_item; 178 178 struct btrfs_root *snap;