lkml.org 
[lkml]   [2012]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] introduce SIZE_MAX
From
Date
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


\
 
 \ /
  Last update: 2012-04-21 05:03    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site