fat: fix non-atomic NFS i_pos read
authorSteven J. Magnani <steve@digidescorp.com>
Wed, 11 Jul 2012 21:02:42 +0000 (14:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jul 2012 23:04:47 +0000 (16:04 -0700)
commit5d8ecbbc284f7e7568969574a6601b05f1ed1d90
tree05c658069a610baaa0eeba8ed48e0689a191ec05
parentc46938d4f3ecadd609a06dae0d5b26a30274b338
fat: fix non-atomic NFS i_pos read

fat_encode_fh() can fetch an invalid i_pos value on systems where 64-bit
accesses are not atomic.  Make it use the same accessor as the rest of the
FAT code.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c