From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: Yury Norov <ynorov@caviumnetworks.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH 4/4] Consolidate posix_fadvise implementations
Date: Mon, 26 Sep 2016 19:44:00 -0000 [thread overview]
Message-ID: <e3397668-23b0-4f34-40e1-0ade08951b53@linaro.org> (raw)
In-Reply-To: <20160925104202.GA1349@yury-N73SV>
On 25/09/2016 03:42, Yury Norov wrote:
>> diff --git a/sysdeps/unix/sysv/linux/tile/kernel-features.h b/sysdeps/unix/sysv/linux/tile/kernel-features.h
>> index 9425e1c..ded0e43 100644
>> --- a/sysdeps/unix/sysv/linux/tile/kernel-features.h
>> +++ b/sysdeps/unix/sysv/linux/tile/kernel-features.h
>> @@ -23,4 +23,5 @@
>> pairs to start with an even-number register. */
>> #ifndef _LP64
>> # define __ASSUME_ALIGNED_REGISTER_PAIRS 1
>> +# define __ASSUME_FADVISE64_64_NO_ALIGN 1
>> #endif
>
> Hi Adhemerval,
>
> In discussion to the readahead() consolidation patch [1] you recommend
> not to add new __ASSUME_ options, and have exceptional implementation
> for tile. But in this patch for posix_fadvise() consolidation you add
> new __ASSUME_FADVISE64_64_NO_ALIGN. This cases are very similar, so I
> think, to be consistent, you'd also rework posix_fadvise() too.
>
> [1] https://sourceware.org/ml/libc-alpha/2016-09/msg00494.html
>
> Yury.
>
There is no direct rule on where to add of not an __ASSUME define, my
understanding it is more a rule of thumb depending of the case.
But you do have a point and thinking twice current glibc internal header
organization does not allow to redefine __ALIGNMENT flags easily
(sysdep.h headers are included many time without guards).
So I think __ASSUME is indeed a better alternative, sorry for the noise.
next prev parent reply other threads:[~2016-09-26 19:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 14:42 [PATCH 0/4] Linux fallocate, posix_fallocate, and posix_fadvise consolidation Adhemerval Zanella
2016-08-19 14:42 ` [PATCH 1/4] Add INTERNAL_SYSCALL_CALL Adhemerval Zanella
2016-08-22 15:28 ` Yury Norov
2016-08-23 19:16 ` Adhemerval Zanella
2016-08-23 19:20 ` Yury Norov
2016-08-19 14:42 ` [PATCH 2/4] Consolidate fallocate{64} implementations Adhemerval Zanella
2016-08-22 15:14 ` Yury Norov
2016-08-23 19:21 ` Adhemerval Zanella
2016-08-19 14:42 ` [PATCH 4/4] Consolidate posix_fadvise implementations Adhemerval Zanella
2016-08-22 15:08 ` Yury Norov
2016-08-23 19:29 ` Adhemerval Zanella
2016-08-23 20:00 ` Yury Norov
2016-08-24 14:29 ` Adhemerval Zanella
2016-08-24 3:53 ` Yury Norov
2016-08-24 14:40 ` Adhemerval Zanella
2016-09-25 10:42 ` Yury Norov
2016-09-26 19:44 ` Adhemerval Zanella [this message]
2016-08-19 14:42 ` [PATCH 3/4] Consolidate posix_fallocate{64} implementations Adhemerval Zanella
2016-08-22 14:35 ` Yury Norov
2016-08-23 19:22 ` Adhemerval Zanella
2016-08-22 14:31 ` [PATCH 0/4] Linux fallocate, posix_fallocate, and posix_fadvise consolidation Yury Norov
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=e3397668-23b0-4f34-40e1-0ade08951b53@linaro.org \
--to=adhemerval.zanella@linaro.org \
--cc=libc-alpha@sourceware.org \
--cc=ynorov@caviumnetworks.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).