[PATCH] device-mapper: __unlock_fs void
authorAlasdair G Kergon <agk@redhat.com>
Thu, 5 May 2005 23:16:04 +0000 (16:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 5 May 2005 23:36:45 +0000 (16:36 -0700)
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>
drivers/md/dm.c

index ea180af6d227e5d1e21dda9ab6c8219cff6dd9ca..0e4c8d3ca9fb269347c80ba8bb6f75e891b528ba 100644 (file)
@@ -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;
 }
 
 /*