diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-02-28 11:01:15 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-28 19:33:53 +0100 |
commit | e9662f701c85ebc99f532bf8bb53208c0648846a (patch) | |
tree | f72d77f7bdea310bc25e70dc71b292dd4d3d287b /fs/btrfs/transaction.h | |
parent | btrfs: remove a printk from scan_one_device (diff) | |
download | linux-e9662f701c85ebc99f532bf8bb53208c0648846a.tar.xz linux-e9662f701c85ebc99f532bf8bb53208c0648846a.zip |
Btrfs: remove unnecessary dget_parent/dput when creating the pending snapshot
Since we have grabbed the parent inode at the beginning of the
snapshot creation, and both sync and async snapshot creation
release it after the pending snapshots are actually created,
it is safe to access the parent inode directly during the snapshot
creation, we needn't use dget_parent/dput to fix the parent dentry
and get the dir inode.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/transaction.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index 5afd7b1dceac..5f67fba07ab4 100644 --- a/fs/btrfs/transaction.h +++ b/fs/btrfs/transaction.h @@ -84,6 +84,7 @@ struct btrfs_trans_handle { struct btrfs_pending_snapshot { struct dentry *dentry; + struct inode *dir; struct btrfs_root *root; struct btrfs_root *snap; struct btrfs_qgroup_inherit *inherit; |