]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove unnecessary dget_parent/dput when creating the pending snapshot
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 28 Feb 2013 10:01:15 +0000 (10:01 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 28 Feb 2013 18:33:53 +0000 (13:33 -0500)
commit77c49c5ac97fdd29dcdf0fbde77176a1dd37d96a
treef72d77f7bdea310bc25e70dc71b292dd4d3d287b
parent2285971cdb0aecea33d400f6e0426eca1e2c91c2
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>
fs/btrfs/ioctl.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h