aboutsummaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2005-05-05 16:16:04 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-05 16:36:45 -0700
commit3dcee8064bd36c547b45514dfd33df4c12695428 (patch)
tree76c651c73dbb3575799f2bb191c0f89b2450ad1b /drivers/md
parentd1782a3b0a15d9ac497a8f47931c4536bfe8d18e (diff)
[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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index ea180af6d22..0e4c8d3ca9f 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1009,18 +1009,16 @@ static int __lock_fs(struct mapped_device *md)
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))
- return 0;
+ return;
thaw_bdev(md->frozen_bdev, md->frozen_sb);
bdput(md->frozen_bdev);
md->frozen_sb = NULL;
md->frozen_bdev = NULL;
-
- return 0;
}
/*