Re: [PATCH]btrfs: avoid comparing with NULL pointer

2010-01-27 Thread Liuwenyi
于 2010年01月27日 16:00, Yan, Zheng 写道: 2010/1/27 Liuwenyi: In this patch, I adjust the seqence of if-conditions. It will assess the page->private situation. First, we make sure the page->private is not null. And then, we can do some with this page->private. --- Signed-off-by: Liuwenyi Cc: Chri

Re: [PATCH]btrfs: avoid comparing with NULL pointer

2010-01-27 Thread Yan, Zheng
2010/1/27 Liuwenyi : > In this patch, I adjust the seqence of if-conditions. > It will assess the page->private situation. > First, we make sure the page->private is not null. > And then, we can do some with this page->private. > > --- > Signed-off-by: Liuwenyi > Cc: Chris Mason > Cc: Yan Zheng

[PATCH]btrfs: avoid comparing with NULL pointer

2010-01-26 Thread Liuwenyi
In this patch, I adjust the seqence of if-conditions. It will assess the page->private situation. First, we make sure the page->private is not null. And then, we can do some with this page->private. --- Signed-off-by: Liuwenyi Cc: Chris Mason Cc: Yan Zheng Cc: Josef Bacik Cc: Jens Axboe Cc: l