]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Fix subvolume creation locking rules
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Oct 2008 17:39:39 +0000 (13:39 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 9 Oct 2008 17:39:39 +0000 (13:39 -0400)
commit813e42371c7cbf006caa1113fd184430f92765ef
treebc31116dcb5bcdd6f2677a0c83b824e77c1ef097
parent3bcf0f1bdd257a56fe21b573a5d120a34dfbe87e
Btrfs: Fix subvolume creation locking rules

Creating a subvolume is in many ways like a normal VFS ->mkdir, and we
really need to play with the VFS topology locking rules.  So instead of
just creating the snapshot on disk and then later getting rid of
confliting aliases do it correctly from the start.  This will become
especially important once we allow for subvolumes anywhere in the tree,
and not just below a hidden root.

Note that snapshots will need the same treatment, but do to the delay
in creating them we can't do it currently.  Chris promised to fix that
issue, so I'll wait on that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/ioctl.c