]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: set FMODE_EXCL in btrfs_device->mode
authorIlya Dryomov <idryomov@gmail.com>
Tue, 15 Feb 2011 18:12:57 +0000 (18:12 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Feb 2011 21:34:00 +0000 (16:34 -0500)
commit6ba8de3a14b5406c1a969d3f42ae54efe21e4852
treeaf7fc0623980c03c3f808f9ec157341d8549133d
parent61d7b7d86ead419085544911b92df13865147f5d
Btrfs: set FMODE_EXCL in btrfs_device->mode

This fixes a bug introduced in 16a977fe, where the device added online
(and therefore initialized via btrfs_init_new_device()) would be left
with the positive bdev->bd_holders after unmount.  Since 16a977fe we no
longer OR FMODE_EXCL explicitly on blkdev_put(), set it in
btrfs_device->mode.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c