lkml.org 
[lkml]   [2011]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2 10/24] sys_swapon: remove bdev variable
On Sat,  5 Mar 2011 13:42:11 -0300
Cesar Eduardo Barros <cesarb@cesarb.net> wrote:

> The bdev variable is always equivalent to (S_ISBLK(inode->i_mode) ?
> p->bdev : NULL), as long as it being set is moved to a bit earlier. Use
> this fact to remove the bdev variable.
>
> Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
> Tested-by: Eric B Munson <emunson@mgebm.net>
> Acked-by: Eric B Munson <emunson@mgebm.net>

Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>



\
 
 \ /
  Last update: 2011-03-07 10:53    [from the cache]
©2003-2011 Jasper Spaans