提交 f0566532 编写于 作者: M Mike Marshall

Orangefs: use inode_set_bytes for directories

Signed-off-by: NMike Marshall <hubcap@omnibond.com>
上级 c36316b7
......@@ -162,12 +162,11 @@ static int copy_attributes_to_inode(struct inode *inode,
}
/*FALLTHRU*/
default:
inode->i_size = PAGE_CACHE_SIZE;
pvfs2_lock_inode(inode);
inode->i_bytes = (unsigned short)PAGE_CACHE_SIZE;
inode->i_blocks = (unsigned long)(PAGE_CACHE_SIZE / 512);
inode_set_bytes(inode, inode->i_size);
pvfs2_unlock_inode(inode);
inode->i_size = PAGE_CACHE_SIZE;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册