diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index ea180af6d227..0e4c8d3ca9fb 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -1009,18 +1009,16 @@ static int __lock_fs(struct mapped_device *md) | |||
1009 | return 0; | 1009 | return 0; |
1010 | } | 1010 | } |
1011 | 1011 | ||
1012 | static int __unlock_fs(struct mapped_device *md) | 1012 | static void __unlock_fs(struct mapped_device *md) |
1013 | { | 1013 | { |
1014 | if (!test_and_clear_bit(DMF_FS_LOCKED, &md->flags)) | 1014 | if (!test_and_clear_bit(DMF_FS_LOCKED, &md->flags)) |
1015 | return 0; | 1015 | return; |
1016 | 1016 | ||
1017 | thaw_bdev(md->frozen_bdev, md->frozen_sb); | 1017 | thaw_bdev(md->frozen_bdev, md->frozen_sb); |
1018 | bdput(md->frozen_bdev); | 1018 | bdput(md->frozen_bdev); |
1019 | 1019 | ||
1020 | md->frozen_sb = NULL; | 1020 | md->frozen_sb = NULL; |
1021 | md->frozen_bdev = NULL; | 1021 | md->frozen_bdev = NULL; |
1022 | |||
1023 | return 0; | ||
1024 | } | 1022 | } |
1025 | 1023 | ||
1026 | /* | 1024 | /* |