lkml.org 
[lkml]   [2007]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Rewrite the MAJOR() macro as a call to imajor().

On May 3 2007 23:18, Andrew Morton wrote:
>> struct inode *i = file->f_mapping->host;
>>
>> - return i && S_ISBLK(i->i_mode) && MAJOR(i->i_rdev) == LOOP_MAJOR;
>> + return i && S_ISBLK(i->i_mode) && imajor(i) == LOOP_MAJOR;
>> }
>
>there's no runtime change, and I count a couple hundred MAJORs in the tree.

Why do we even have imajor() if all it does is calling the MAJOR()
macro?


Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-05-04 10:13    [W:0.045 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site