]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86c0351fcf38e448238c85c61211412fa64d3c85
tree05c658069a610baaa0eeba8ed48e0689a191ec05
parentb162508299ded38e533a08bbf27682ba4413f244
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