[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] Re: [PATCH 3/3] Add timeout feature
- From: Andrew Morton <akpm linux-foundation org>
- To: "Takashi Sato" <t-sato yk jp nec com>
- Cc: axboe kernel dk, mtk manpages googlemail com, linux-kernel vger kernel org, xfs oss sgi com, dm-devel redhat com, viro ZenIV linux org uk, linux-fsdevel vger kernel org, linux-ext4 vger kernel org
- Subject: [dm-devel] Re: [PATCH 3/3] Add timeout feature
- Date: Sun, 29 Jun 2008 17:01:52 -0700
On Mon, 30 Jun 2008 08:13:07 +0900 "Takashi Sato" <t-sato yk jp nec com> wrote:
> > It's much better to use NULL here rather than literal zero because the
> > reader of this code can then say "ah-hah, we're passing in a pointer".
> > Whereas plain old "0" could be a pointer or a scalar.
>
> The second argument's type of freeze_bdev() is "long", not pointer as below.
> struct super_block *freeze_bdev(struct block_device *, long timeout_msec);
oh, ok, I goofed, sorry.
> So "0" is reasonable, isn't it?
yup.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]