summaryrefslogtreecommitdiff
path: root/include/linux/fs_stack.h
diff options
context:
space:
mode:
authorErez Zadok <ezk@cs.sunysb.edu>2009-12-04 05:56:09 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2009-12-17 18:58:17 +0300
commit1b8ab8159ef8f818f870a1d2e3b6953d80eefd3f (patch)
tree97fdfc87493d5077c4c510e4defedccc483477af /include/linux/fs_stack.h
parent9afa2fb6c13501e5b3536d15344fce4e5442c469 (diff)
downloadlinux-1b8ab8159ef8f818f870a1d2e3b6953d80eefd3f.tar.xz
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>
Diffstat (limited to 'include/linux/fs_stack.h')
-rw-r--r--include/linux/fs_stack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs_stack.h b/include/linux/fs_stack.h
index aa60311900dd..da317c7163ab 100644
--- a/include/linux/fs_stack.h
+++ b/include/linux/fs_stack.h
@@ -9,7 +9,7 @@
/* externs for fs/stack.c */
extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src);
-extern void fsstack_copy_inode_size(struct inode *dst, const struct inode *src);
+extern void fsstack_copy_inode_size(struct inode *dst, struct inode *src);
/* inlines */
static inline void fsstack_copy_attr_atime(struct inode *dest,