[PATCH 15/22] Rename unreadable mutex

Jörn Engel joern at wohnheim.fh-wedel.de
Tue Dec 21 09:02:19 EST 2004


If I cannot pronounce a name, my reading abilities degrade.

Signed-off-by: Jörn Engel <joern at wohnheim.fh-wedel.de>
---

 blockmtd.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

--- linux-2.6.9cow/drivers/mtd/devices/blockmtd.c~blockmtd_mutex	2004-12-20 22:38:34.000000000 +0100
+++ linux-2.6.9cow/drivers/mtd/devices/blockmtd.c	2004-12-20 22:41:15.000000000 +0100
@@ -46,7 +46,7 @@
 	struct list_head list;
 	struct block_device *blkdev;
 	struct mtd_info mtd;
-	struct semaphore wrbuf_mutex;
+	struct semaphore write_mutex;
 };
 
 
@@ -215,9 +215,9 @@
 	}
 
 	err=0;
-	down(&dev->wrbuf_mutex);
+	down(&dev->write_mutex);
 	err = buf ? my_write() : my_erase();
-	up(&dev->wrbuf_mutex);
+	up(&dev->write_mutex);
 	return err;
 }
 
@@ -388,7 +388,7 @@
 	}
 
 	atomic_set(&bdev->bd_inode->i_mapping->truncate_count, 0);
-	init_MUTEX(&dev->wrbuf_mutex);
+	init_MUTEX(&dev->write_mutex);
 
 	/* Setup the MTD structure */
 	/* make the name contain the block device in */
@@ -566,5 +566,5 @@
 module_exit(blockmtd_exit);
 
 MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Simon Evans <spse at secret.org.uk>");
+MODULE_AUTHOR("Simon Evans <spse at secret.org.uk> and others");
 MODULE_DESCRIPTION("Emulate an MTD using a block device");




More information about the linux-mtd mailing list