fs/adfs: return f_fsid for statfs(2)
fs/adfs: return f_fsid for statfs(2)

Currently many file systems in Linux kernel do not return f_fsid in statfs
info, the value is set as 0 in vfs layer.  Anyway, in some conditions,
f_fsid from statfs(2) is useful, especially being used as (f_fsid, ino)
pair to uniquely identify a file.

Basic idea of the patches is generating a unique fs ID by
huge_encode_dev(sb->s_bdev->bd_dev) during file system mounting life time
(no endian consistent issue).  sb is a point of struct super_block of
current mounted file system being accessed by statfs(2).

This patch:

Make adfs return f_fsid info for statfs(2), and do a little variable
renaming in adfs_statfs().

Signed-off-by: Coly Li <2f585d23d29573b0828f556beff8692b58f07d0f@suse.de>
Cc: Roman Zippel <f9f6ad990b4a8c1974dc6544787c1cc3570b6f00@linux-m68k.org>
Cc: "Sergey S. Kostyliov" <2243b301872432718461f8859d35aa57348e58e1@php4.ru>
Cc: OGAWA Hirofumi <1dd685eef08048be95744a1b104ca593a93cc914@mail.parknet.co.jp>
Cc: Mikulas Patocka <48ca9bee1fffce1977d8537782be3863d5c91b8e@artax.karlin.mff.cuni.cz>
Cc: Dave Kleikamp <9bc4ae2e83dabb4524fc335d7c1dac408a99dbe5@austin.ibm.com>
Cc: Bob Copeland <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@bobcopeland.com>
Cc: Anders Larsen <2f9ee2b336682012cb445da6f3a0a52c68caf471@alarsen.net>
Cc: Phillip Lougher <21542e38a0b82113edef7e33c378f247e235fb75@lougher.demon.co.uk>
Cc: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@infradead.org>
Cc: Evgeniy Dushistov <33ef474d644ae25e5bbba24fb01189cc6a985106@mail.ru>
Cc: Jan Kara <596727c8a0ea4db3ba2ceceedccbacd3d7b371b8@suse.cz>
Cc: Andreas Dilger <fd4823dd86d134508df78a168e24c446ce7699f3@sun.com>
Cc: Jamie Lokier <b4dde37aa2aac745c0e6c43447507eaeace3e59f@shareable.org>
Cc: Theodore Ts'o <4ed386e0495d3e109932df055831d9ec2f824927@mit.edu>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas