diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2010-12-07 01:51:26 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-12-10 16:29:10 -0500 |
commit | f106e82caaa0d943e47cacc184f5b40d538e0044 (patch) | |
tree | 5e8b6c5e0b0b35c65ed509029cda85bd54a8aab8 /fs/btrfs/file.c | |
parent | 75eaa0e22c055e38982df267d0f84cc510ba38bf (diff) | |
download | op-kernel-dev-f106e82caaa0d943e47cacc184f5b40d538e0044.zip op-kernel-dev-f106e82caaa0d943e47cacc184f5b40d538e0044.tar.gz |
Btrfs: Fix a crash when mounting a subvolume
We should drop dentry before deactivating the superblock, otherwise
we can hit this bug:
BUG: Dentry f349a690{i=100,n=/} still in use (1) [unmount of btrfs loop1]
...
Steps to reproduce the bug:
# mount /dev/loop1 /mnt
# mkdir save
# btrfs subvolume snapshot /mnt save/snap1
# umount /mnt
# mount -o subvol=save/snap1 /dev/loop1 /mnt
(crash)
Reported-by: Michael Niederle <mniederle@gmx.at>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
0 files changed, 0 insertions, 0 deletions