VFS/fs_stack: drop cast on inode passed to i_size_read
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 25 Dec 2007 21:37:01 +0000 (16:37 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 6 Jan 2010 03:44:10 +0000 (22:44 -0500)
i_size_read() takes 'const struct inode *' already, as of 2.6.20.

CC: Mike Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/stack.c

index a548aacf8af1bbcc52faa41ac31daa7dccd5bcd8..7913fe53a3c9317723696352c9f16bb45397c616 100644 (file)
@@ -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);