]> git.baikalelectronics.ru Git - kernel.git/commit
VFS/fsstack: handle 32-bit smp + preempt + large files in fsstack_copy_inode_size
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 4 Dec 2009 02:56:09 +0000 (21:56 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Dec 2009 15:58:17 +0000 (10:58 -0500)
commita447264386a9a3e22a641ca5665deed0bbf25f0e
tree97fdfc87493d5077c4c510e4defedccc483477af
parent92f5c3529661f6b1a7a091a7e2c055595bb59aba
VFS/fsstack: handle 32-bit smp + preempt + large files in fsstack_copy_inode_size

Copy the inode size and blocks from one inode to another correctly on 32-bit
systems with CONFIG_SMP, CONFIG_PREEMPT, or CONFIG_LBDAF.  Use proper inode
spinlocks only when i_size/i_blocks cannot fit in one 32-bit word.

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/stack.c
include/linux/fs_stack.h