Thread (2 messages) 2 messages, 2 authors, 2008-10-28

Re: [PATCH 2/3] Implement generic freeze feature

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2008-10-28 06:16:27
Also in: dm-devel, linux-fsdevel, linux-xfs, lkml

Possibly related (same subject, not in this thread)

On Mon, 27 Oct 2008 21:58:54 +0900 Takashi Sato [off-list ref] wrote:
-void thaw_bdev(struct block_device *bdev, struct super_block *sb)
+int thaw_bdev(struct block_device *bdev, struct super_block *sb)
 {
+	int error = 0;
+
+	mutex_lock(&bdev->bd_fsfreeze_mutex);
+	if (!bdev->bd_fsfreeze_count) {
+		mutex_unlock(&bdev->bd_fsfreeze_mutex);
+		return -EINVAL;
This would be a programming error, yes?

If so, a WARN_ON is more appropriate than a silent runtime error.
+	}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help