android_kernel_google_msm/fs/ceph
Xi Wang b06b5c6204 introduce SIZE_MAX
commit a3860c1c5d upstream.

ULONG_MAX is often used to check for integer overflow when calculating
allocation size.  While ULONG_MAX happens to work on most systems, there
is no guarantee that `size_t' must be the same size as `long'.

This patch introduces SIZE_MAX, the maximum value of `size_t', to improve
portability and readability for allocation size validation.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Acked-by: Alex Elder <elder@dreamhost.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Qiang Huang <h.huangqiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-31 12:54:53 -07:00
..
addr.c ceph: Avoid data inconsistency due to d-cache aliasing in readpage() 2014-01-08 09:42:11 -08:00
caps.c ceph: call handle_cap_grant() for cap import message 2013-01-17 08:51:21 -08:00
ceph_frag.c
debugfs.c libceph: delay debugfs initialization until we learn global_id 2012-11-26 11:38:43 -08:00
dir.c
export.c tmpfs,ceph,gfs2,isofs,reiserfs,xfs: fix fh_len checking 2012-10-21 09:27:57 -07:00
file.c ceph: propagate layout error on osd request creation 2013-01-17 08:51:18 -08:00
inode.c ceph: Fix __ceph_do_pending_vmtruncate 2013-01-17 08:51:21 -08:00
ioctl.c
ioctl.h
Kconfig
locks.c ceph: ceph_pagelist_append might sleep while atomic 2013-06-20 11:58:43 -07:00
Makefile
mds_client.c ceph: wake up 'safe' waiters when unregistering request 2014-01-08 09:42:10 -08:00
mds_client.h ceph: define ceph_auth_handshake type 2012-11-26 11:38:07 -08:00
mdsmap.c
snap.c introduce SIZE_MAX 2014-07-31 12:54:53 -07:00
strings.c
super.c ceph: fix statvfs fr_size 2013-06-20 11:58:47 -07:00
super.h ceph: fix statvfs fr_size 2013-06-20 11:58:47 -07:00
xattr.c