diff options
author | David Sterba <dsterba@suse.com> | 2022-01-31 18:53:32 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:28 +0200 |
commit | c154a8446bb75d541a23d040bbfcb8664328d972 (patch) | |
tree | 869109dc001ac9cf8483be6a326c36b4a409a3b2 /fs/btrfs/ioctl.c | |
parent | btrfs: pass a btrfs_inode to btrfs_ioctl_send() (diff) | |
download | linux-c154a8446bb75d541a23d040bbfcb8664328d972.tar.xz linux-c154a8446bb75d541a23d040bbfcb8664328d972.zip |
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>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index d4f0445c4230..f30242066ed2 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -855,7 +855,7 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir, pending_snapshot->dentry = dentry; pending_snapshot->root = root; pending_snapshot->readonly = readonly; - pending_snapshot->dir = dir; + pending_snapshot->dir = BTRFS_I(dir); pending_snapshot->inherit = inherit; trans = btrfs_start_transaction(root, 0); |