aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r--fs/proc/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 78fdfea1a7f8..ea115d4c9f59 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2586,7 +2586,7 @@ static int proc_task_readdir(struct file * filp, void * dirent, filldir_t filldi
2586 /* f_version caches the tgid value that the last readdir call couldn't 2586 /* f_version caches the tgid value that the last readdir call couldn't
2587 * return. lseek aka telldir automagically resets f_version to 0. 2587 * return. lseek aka telldir automagically resets f_version to 0.
2588 */ 2588 */
2589 tid = filp->f_version; 2589 tid = (int)filp->f_version;
2590 filp->f_version = 0; 2590 filp->f_version = 0;
2591 for (task = first_tid(leader, tid, pos - 2); 2591 for (task = first_tid(leader, tid, pos - 2);
2592 task; 2592 task;
@@ -2595,7 +2595,7 @@ static int proc_task_readdir(struct file * filp, void * dirent, filldir_t filldi
2595 if (proc_task_fill_cache(filp, dirent, filldir, task, tid) < 0) { 2595 if (proc_task_fill_cache(filp, dirent, filldir, task, tid) < 0) {
2596 /* returning this tgid failed, save it as the first 2596 /* returning this tgid failed, save it as the first
2597 * pid for the next readir call */ 2597 * pid for the next readir call */
2598 filp->f_version = tid; 2598 filp->f_version = (u64)tid;
2599 put_task_struct(task); 2599 put_task_struct(task);
2600 break; 2600 break;
2601 } 2601 }