From: Xi Wang <xi.wang@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, Alex Elder <elder@dreamhost.com>,
David Airlie <airlied@linux.ie>,
Pekka Enberg <penberg@kernel.org>
Subject: Re: [RFC][PATCH] introduce SIZE_MAX
Date: Fri, 20 Apr 2012 22:59:28 -0400 [thread overview]
Message-ID: <B2B99C3B-C1F5-4D7B-B73F-B64F296D23B6@gmail.com> (raw)
In-Reply-To: <20120420160337.479eeac0.akpm@linux-foundation.org>
On Apr 20, 2012, at 7:03 PM, Andrew Morton wrote:
> Will we need something for ssize_t also?
Did you mean something like SSIZE_MAX for replacing LONG_MAX? That's
a good question since we have ssize_t.
I tried to grep `LONG_MAX' and `size'. The only place I have found
so far is the following:
fs/xfs/xfs_aops.c:1247, in __xfs_get_blocks()
if (mapping_size > LONG_MAX)
mapping_size = LONG_MAX;
bh_result->b_size = mapping_size;
Not sure if SSIZE_MAX works better here (`b_size' is size_t).
- xi
prev parent reply other threads:[~2012-04-21 2:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-19 4:27 Xi Wang
2012-04-20 23:03 ` Andrew Morton
2012-04-21 2:59 ` Xi Wang [this message]
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=B2B99C3B-C1F5-4D7B-B73F-B64F296D23B6@gmail.com \
--to=xi.wang@gmail.com \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=elder@dreamhost.com \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@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®