opensubscriber
   Find in this group all groups
 
Unknown more information…

l : linux-fsdevel@vger.kernel.org 28 October 2008 • 3:15PM -0400

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

REPLY TO AUTHOR
 
REPLY TO GROUP




On Mon, 27 Oct 2008 21:58:54 +0900 Takashi Sato <t-sato@yk.j...> 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.

> + }


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.