Lines Matching refs:task
107 struct task_struct *task = priv->task; in hold_task_mempolicy() local
109 task_lock(task); in hold_task_mempolicy()
110 priv->task_mempolicy = get_task_policy(task); in hold_task_mempolicy()
112 task_unlock(task); in hold_task_mempolicy()
152 priv->task = get_proc_task(priv->inode); in m_start()
153 if (!priv->task) in m_start()
158 put_task_struct(priv->task); in m_start()
159 priv->task = NULL; in m_start()
165 put_task_struct(priv->task); in m_start()
166 priv->task = NULL; in m_start()
192 if (!priv->task) in m_stop()
198 put_task_struct(priv->task); in m_stop()
199 priv->task = NULL; in m_stop()
897 priv->task = get_proc_task(priv->inode); in show_smaps_rollup()
898 if (!priv->task) in show_smaps_rollup()
1001 put_task_struct(priv->task); in show_smaps_rollup()
1002 priv->task = NULL; in show_smaps_rollup()
1258 struct task_struct *task; in clear_refs_write() local
1278 task = get_proc_task(file_inode(file)); in clear_refs_write()
1279 if (!task) in clear_refs_write()
1281 mm = get_task_mm(task); in clear_refs_write()
1326 put_task_struct(task); in clear_refs_write()