On Mon, 25 Jun 2007 09:49:17 +0100 David Woodhouse <[EMAIL PROTECTED]> wrote:
> +/* It would be nice if people remember that not all the world's an i386
> + when they introduce new system calls */
I think we could do without the smartarse comments, frankly. It took about
two weeks and 1000000000 emails for you guys to sort out the fallocate()
ABI. How would you like "it would be nice if maintainers of oddball
architectures would pay attention"?
> +asmlinkage long compat_sys_sync_file_range2(int fd, unsigned int flags,
> + unsigned offset_hi, unsigned offset_lo,
> + unsigned nbytes_hi, unsigned nbytes_lo)
> +{
> + loff_t offset = ((loff_t)offset_hi << 32) | offset_lo;
> + loff_t nbytes = ((loff_t)nbytes_hi << 32) | nbytes_lo;
> +
> + return sys_sync_file_range(fd, offset, nbytes, flags);
> +}
>
versus
+asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
+ u32 lenhi, u32 lenlo)
+{
+ return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo,
+ ((loff_t)lenhi << 32) | lenlo);
+}
the naming, the implementation and the types are all inconsistent. Can we
pick one style and stick to it?
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html