From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Kyle McMartin <kyle@mcmartin.ca>
Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Generic compat_sys_fallocate
Date: Sat, 29 Sep 2007 11:11:24 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0709291109320.10965@anakin> (raw)
In-Reply-To: <1191018832-18069-2-git-send-email-kyle@mcmartin.ca>
On Fri, 28 Sep 2007, Kyle McMartin wrote:
> --- a/fs/compat.c
> +++ b/fs/compat.c
> @@ -2226,3 +2226,13 @@ asmlinkage long compat_sys_timerfd(int ufd, int clockid, int flags,
> }
>
> #endif /* CONFIG_TIMERFD */
> +
> +asmlinkage long compat_sys_fallocate(int fd, int mode,
> + u32 offset_lo, u32 offset_hi,
> + u32 len_lo, u32 len_hi)
> +{
> + u64 offset = compat_merge64(offset_lo, offset_hi);
> + u64 len = compat_merge64(len_lo, len_hi);
> +
> + return sys_fallocate(fd, mode, offset, len);
> +}
To avoid confusion, you may want to rename the *_{lo,hi} parameters to
e.g. *_{l,r}, as they don't actually mean the low and high part anymore.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2007-09-29 9:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-28 22:33 [COMPAT] Add compat_merge64 helper Kyle McMartin
2007-09-28 22:33 ` [PATCH] Generic compat_sys_fallocate Kyle McMartin
2007-09-29 9:11 ` Geert Uytterhoeven [this message]
2007-09-28 23:38 ` [COMPAT] Add compat_merge64 helper Arnd Bergmann
2007-09-29 0:01 ` Kyle McMartin
2007-09-28 23:52 ` Arnd Bergmann
2007-09-29 0:02 ` Kyle McMartin
2007-09-29 7:23 ` Paul Mundt
2007-09-29 9:48 ` Heiko Carstens
2007-10-03 12:12 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2007-09-28 18:11 [PATCH] Generic compat_sys_fallocate Kyle McMartin
[not found] ` <200709282101.39020.arnd@arndb.de>
2007-09-28 19:30 ` Kyle McMartin
2007-09-29 5:06 ` Heiko Carstens
2007-09-28 19:36 ` Kyle McMartin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0709291109320.10965@anakin \
--to=geert@linux-m68k.org \
--cc=kyle@mcmartin.ca \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®