Commit 3dcee806 authored by Alasdair G Kergon's avatar Alasdair G Kergon Committed by Linus Torvalds

[PATCH] device-mapper: __unlock_fs void

Make __unlock_fs() void.

From: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d1782a3b
...@@ -1009,18 +1009,16 @@ static int __lock_fs(struct mapped_device *md) ...@@ -1009,18 +1009,16 @@ static int __lock_fs(struct mapped_device *md)
return 0; return 0;
} }
static int __unlock_fs(struct mapped_device *md) static void __unlock_fs(struct mapped_device *md)
{ {
if (!test_and_clear_bit(DMF_FS_LOCKED, &md->flags)) if (!test_and_clear_bit(DMF_FS_LOCKED, &md->flags))
return 0; return;
thaw_bdev(md->frozen_bdev, md->frozen_sb); thaw_bdev(md->frozen_bdev, md->frozen_sb);
bdput(md->frozen_bdev); bdput(md->frozen_bdev);
md->frozen_sb = NULL; md->frozen_sb = NULL;
md->frozen_bdev = NULL; md->frozen_bdev = NULL;
return 0;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment