android_kernel_samsung_univ.../fs/cifs
Yadan Fan bbb3c5076b Fix cifs_uniqueid_to_ino_t() function for s390x
commit 1ee9f4bd1a97026a7b2d7ae9f1f74b45680d0003 upstream.

This issue is caused by commit 02323db17e ("cifs: fix
cifs_uniqueid_to_ino_t not to ever return 0"), when BITS_PER_LONG
is 64 on s390x, the corresponding cifs_uniqueid_to_ino_t()
function will cast 64-bit fileid to 32-bit by using (ino_t)fileid,
because ino_t (typdefed __kernel_ino_t) is int type.

It's defined in arch/s390/include/uapi/asm/posix_types.h

    #ifndef __s390x__

    typedef unsigned long   __kernel_ino_t;
    ...
    #else /* __s390x__ */

    typedef unsigned int    __kernel_ino_t;

So the #ifdef condition is wrong for s390x, we can just still use
one cifs_uniqueid_to_ino_t() function with comparing sizeof(ino_t)
and sizeof(u64) to choose the correct execution accordingly.

Signed-off-by: Yadan Fan <ydfan@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-09 15:34:50 -08:00
..
asn1.c
cache.c
cifs_debug.c cifs: Ratelimit kernel log messages 2016-02-25 12:01:17 -08:00
cifs_debug.h cifs: Ratelimit kernel log messages 2016-02-25 12:01:17 -08:00
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c KEYS: Merge the type-specific data with the payload data 2015-10-21 15:18:36 +01:00
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c KEYS: Merge the type-specific data with the payload data 2015-10-21 15:18:36 +01:00
cifsacl.h
cifsencrypt.c cifs: fix erroneous return value 2016-02-25 12:01:18 -08:00
cifsfs.c Allow copy offload (CopyChunk) across shares 2015-11-09 09:28:48 -06:00
cifsfs.h Fix cifs_uniqueid_to_ino_t() function for s390x 2016-03-09 15:34:50 -08:00
cifsglob.h Add resilienthandles mount parm 2015-11-03 10:10:36 -06:00
cifspdu.h
cifsproto.h
cifssmb.c CIFS: Fix SMB2+ interim response processing for read requests 2016-03-09 15:34:50 -08:00
connect.c cifs: fix race between call_async() and reconnect() 2016-02-25 12:01:17 -08:00
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c mm, fs: introduce mapping_gfp_constraint() 2015-11-06 17:50:42 -08:00
fscache.c
fscache.h
inode.c sched/wait: Fix the signal handling fix 2015-12-13 14:30:59 -08:00
ioctl.c Allow copy offload (CopyChunk) across shares 2015-11-09 09:28:48 -06:00
Kconfig
link.c
Makefile
misc.c
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c cifs_dbg() outputs an uninitialized buffer in cifs_readdir() 2016-02-25 12:01:17 -08:00
rfc1002pdu.h
sess.c KEYS: Merge the type-specific data with the payload data 2015-10-21 15:18:36 +01:00
smb1ops.c
smb2file.c Add resilienthandles mount parm 2015-11-03 10:10:36 -06:00
smb2glob.h
smb2inode.c
smb2maperror.c
smb2misc.c
smb2ops.c [SMB3] Enable checking for continuous availability and persistent handle support 2015-11-03 09:15:03 -06:00
smb2pdu.c cifs: fix out-of-bounds access in lease parsing 2016-03-09 15:34:50 -08:00
smb2pdu.h [SMB3] Send durable handle v2 contexts when use of persistent handles required 2015-11-03 09:26:27 -06:00
smb2proto.h
smb2status.h
smb2transport.c
smbencrypt.c
smberr.h
smbfsctl.h [SMB3] Send durable handle v2 contexts when use of persistent handles required 2015-11-03 09:26:27 -06:00
transport.c cifs: fix race between call_async() and reconnect() 2016-02-25 12:01:17 -08:00
winucase.c
xattr.c