[PATCH] device-mapper: __unlock_fs void
Make __unlock_fs() void. From: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d1782a3b0a
commit
3dcee8064b
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue