Re: [RFC 7/7] ext3 blocks: convert ext3_fsblk_t to sector_t
Dave Kleikamp <[email protected]>
| Newsgroups | gmane.comp.file-systems.ext2.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2006-05-19 at 11:19 -0700, Badari Pulavarty wrote: > On Fri, 2006-05-19 at 09:42 -0700, Mingming Cao wrote: > > But checking the rest of 64 bit arch where sector_t is defined, found > > previous assumption not always true: about on 64 bit machine > > sector_t/u64 is always unsigned long. At least, cscope shows asm-sh > > arch, BITS_PER_LONG is 64, while, u64/sector_t is unsigned long long, so > > this won't work for this case. > > It should work on 64-bit machines also as "long long" is equal to "long" > (64-bit) on these machines (verified it atleast on x86-64, ppc64) What do you mean by "equal"? Yes they are both 64 bits, but I believe the compiler will still complain if you print a long with %llu or a long long with %lu. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642