[XFS] * There is trivial "inode => vnode => inode" conversion, but only
flags and mode of final inode are looked at. Pass original inode instead. * Two occurences of bhv_vnode_t go out. SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:26298a Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
This commit is contained in:
Родитель
b71d300c8b
Коммит
71306f3b88
|
@ -93,7 +93,7 @@ typedef enum {
|
||||||
*/
|
*/
|
||||||
static inline struct bhv_vnode *vn_from_inode(struct inode *inode)
|
static inline struct bhv_vnode *vn_from_inode(struct inode *inode)
|
||||||
{
|
{
|
||||||
return (bhv_vnode_t *)list_entry(inode, bhv_vnode_t, v_inode);
|
return container_of(inode, bhv_vnode_t, v_inode);
|
||||||
}
|
}
|
||||||
static inline struct inode *vn_to_inode(struct bhv_vnode *vnode)
|
static inline struct inode *vn_to_inode(struct bhv_vnode *vnode)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче