orangefs: use new orangefs_inode_getattr to create new inodes
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
parent
3c9cf98d7b
commit
075cca50b6
|
@ -402,8 +402,7 @@ struct inode *orangefs_iget(struct super_block *sb, struct orangefs_object_kref
|
||||||
if (!inode || !(inode->i_state & I_NEW))
|
if (!inode || !(inode->i_state & I_NEW))
|
||||||
return inode;
|
return inode;
|
||||||
|
|
||||||
error = orangefs_inode_old_getattr(inode,
|
error = orangefs_inode_getattr(inode, 1, 0);
|
||||||
ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0);
|
|
||||||
if (error) {
|
if (error) {
|
||||||
iget_failed(inode);
|
iget_failed(inode);
|
||||||
return ERR_PTR(error);
|
return ERR_PTR(error);
|
||||||
|
@ -448,8 +447,7 @@ struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir,
|
||||||
orangefs_set_inode(inode, ref);
|
orangefs_set_inode(inode, ref);
|
||||||
inode->i_ino = hash; /* needed for stat etc */
|
inode->i_ino = hash; /* needed for stat etc */
|
||||||
|
|
||||||
error = orangefs_inode_old_getattr(inode,
|
error = orangefs_inode_getattr(inode, 1, 0);
|
||||||
ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0);
|
|
||||||
if (error)
|
if (error)
|
||||||
goto out_iput;
|
goto out_iput;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue