[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <49003C35.1090301@lougher.demon.co.uk>
Date: Thu, 23 Oct 2008 09:56:21 +0100
From: Phillip Lougher <phillip@...gher.demon.co.uk>
To: Geert Uytterhoeven <Geert.Uytterhoeven@...ycom.com>
CC: akpm@...ux-foundation.org, linux-embedded@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
tim.bird@...sony.com
Subject: Re: Subject: [PATCH 12/16] Squashfs: header files
Geert Uytterhoeven wrote:
> On Fri, 17 Oct 2008, Phillip Lougher wrote:
>> +#ifdef SQUASHFS_TRACE
>> +#define TRACE(s, args...) printk(KERN_NOTICE "SQUASHFS: "s, ## args)
>> +#else
>> +#define TRACE(s, args...) {}
>> +#endif
>
> Just use
>
> #define TRACE(s, args...) pr_debug("SQUASHFS: "s, ## args)
OK.
>> +
>> +#define WARNING(s, args...) printk(KERN_WARNING "SQUASHFS: "s, ## args)
> ^^^^^^^^^^^^^^^^
> pr_warning(
>
OK.
>
> SQUASHFS_MKFLAGS() isn't used by the kernel, only by the tools (mksquashfs)?
>
Only used by mksquashfs. I pulled out the user-space only stuff into a
separate include, but must have missed this one.
>> +/* meta index cache */
>> +#define SQUASHFS_META_INDEXES (SQUASHFS_METADATA_SIZE / sizeof(unsigned int))
> ^^^^^^^^^^^^
> I was wondering whether a meta index is an `unsigned int' or an `__le32', but I
> couldn't find it easily.
>
Unsigned int, it's used internally by the index cache code (file.c). It
works out how many block indexes can fit into one compressed metadata block.
Phillip
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists