Re: [PATCH] device-mapper: [2/5] __unlock_fs void

From: Alasdair G Kergon
Date: Wed May 04 2005 - 12:07:41 EST


Make __unlock_fs() void.

From: Christoph Hellwig <hch@xxxxxx>
--- diff/drivers/md/dm.c 2005-04-21 16:06:40.000000000 +0100
+++ source/drivers/md/dm.c 2005-04-21 16:07:21.000000000 +0100
@@ -1009,18 +1009,16 @@
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;
}

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/