提交 c765d479 编写于 作者: A Al Viro

affs: do not zero ->i_op

it is already set to empty table and should never be NULL
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 7f5ff766
...@@ -119,8 +119,7 @@ struct inode *affs_iget(struct super_block *sb, unsigned long ino) ...@@ -119,8 +119,7 @@ struct inode *affs_iget(struct super_block *sb, unsigned long ino)
goto bad_inode; goto bad_inode;
#else #else
inode->i_mode |= S_IFDIR; inode->i_mode |= S_IFDIR;
inode->i_op = NULL; /* ... and leave ->i_op and ->i_fop pointing to empty */
inode->i_fop = NULL;
break; break;
#endif #endif
case ST_LINKFILE: case ST_LINKFILE:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册