GIT: unionfs2-2.6.27.y: VFS/fs_stack: drop cast on inode passed to i_size_read
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:32 EDT 2010
commit c26e06e9a0b1f22e4c6009be58931f1bd00086d6
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Tue Dec 25 16:37:01 2007 -0500
VFS/fs_stack: drop cast on inode passed to i_size_read
i_size_read() takes 'const struct inode *' already, as of 2.6.20.
CC: Mike Halcrow <mhalcrow at us.ibm.com>
Signed-off-by: Jan Engelhardt <jengelh at computergmbh.de>
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/stack.c b/fs/stack.c
index a548aac..7913fe5 100644
--- a/fs/stack.c
+++ b/fs/stack.c
@@ -21,7 +21,7 @@
*/
void fsstack_copy_inode_size(struct inode *dst, const struct inode *src)
{
- i_size_write(dst, i_size_read((struct inode *)src));
+ i_size_write(dst, i_size_read(src));
dst->i_blocks = src->i_blocks;
}
EXPORT_SYMBOL_GPL(fsstack_copy_inode_size);
More information about the unionfs-cvs
mailing list