commit | fb01aa85b8b29c1a4e1f4a28ea54175de6bf7559 | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <idryomov@gmail.com> | Tue Feb 15 18:12:57 2011 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Wed Feb 16 16:34:00 2011 -0500 |
tree | af7fc0623980c03c3f808f9ec157341d8549133d | |
parent | 9b3517e9136824346227b7b04f8f7ea1f3a726cc [diff] |
Btrfs: set FMODE_EXCL in btrfs_device->mode This fixes a bug introduced in d4d77629, 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 d4d77629 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>