remove ocfs_inode_read()
PATCH 1/1 remove ocfs_inode_read()
If read_inode2 is defined in the super operations, then read_inode will not be called. The following patch removes just removes the uncalled ocfs_read_inode().
--rusty
super.c +0 -1
@@ -147,7 +147,6 @@//put_inode = force_delete, //delete_inode = ocfs_delete_inode, #if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,0 ) - .read_inode = ocfs_read_inode, .read_inode2 = ocfs_read_inode2, #endif .put_super = ocfs_put_super,
inode.c +0 -8
@@ -534,14 +534,6 @@ return; }/* ocfs_read_inode2 */ -/* -* ocfs_read_inode() -* Only used in Linux 2.4 -*/ -void ocfs_read_inode (struct inode *inode) -{ -make_bad_inode (inode); -}/* ocfs_read_inode() */ #endif #if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,0 )
inc/proto.h +0 -1
@@ -92,7 +92,6 @@void ocfs_populate_inode (struct inode *inode,ocfs_file_entry *fe,umode_t mode,void *genptr,bool create_ino);void ocfs_read_locked_inode (struct inode *inode,ocfs_find_inode_args *args);void ocfs_read_inode2 (struct inode *inode,void *opaque); -void ocfs_read_inode (struct inode *inode);struct inode *ocfs_iget (struct super_block *sb,ocfs_find_inode_args *args);void ocfs_put_inode (struct inode *inode);void ocfs_clear_inode (struct inode *inode);