Re: About #if !defined(MB_CACHE_INDEXES_COUNT) || (MB_CACHE_INDEXES_COUNT > 0) in mbcache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



look at the code.
static inline int
 105mb_cache_indexes(struct mb_cache *cache)
 106{
 107#ifdef MB_CACHE_INDEXES_COUNT
 108        return MB_CACHE_INDEXES_COUNT;
 109#else
 110        return cache->c_indexes_count;
 111#endif
 112}
http://lxr.linux.no/linux+v2.6.34.1/fs/mbcache.c#L107


2010/7/17 Ryan Wang <openspace.wang@xxxxxxxxx>:
> Hi,
>
>       I wonder when MB_CACHE_INDEXES_COUNT is undefined
> in mbcache? In mbcache.h, MB_CACHE_INDEXES_COUNT is
> set 1, so this #if always gets true.  Can we remove it for it seems
> meaningless.
>
> thanks,
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
Best Regards
Lin

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux