diff options
author | Jan Blunck <jblunck@suse.de> | 2009-11-20 11:40:37 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-23 13:38:03 -0500 |
commit | 429947248f814e90f416ab4f68a871ab628000c3 (patch) | |
tree | 78f42d03ce2b8a6f3efec4cbc789680ac37f0fcc /kernel | |
parent | fe3bcfe1f6c1fc4ea7706ac2d05e579fd9092682 (diff) |
sched_feat_write(): Update ppos instead of file->f_pos
sched_feat_write() should update ppos instead of file->f_pos.
(This reduces some BKL dependencies of this code.)
Signed-off-by: Jan Blunck <jblunck@suse.de>
Cc: jkacur@redhat.com
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jamie Lokier <jamie@shareable.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
LKML-Reference: <1258735245-25826-8-git-send-email-jblunck@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index ab9a034c4a17..93474a7935ae 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -771,7 +771,7 @@ sched_feat_write(struct file *filp, const char __user *ubuf, | |||
771 | if (!sched_feat_names[i]) | 771 | if (!sched_feat_names[i]) |
772 | return -EINVAL; | 772 | return -EINVAL; |
773 | 773 | ||
774 | filp->f_pos += cnt; | 774 | *ppos += cnt; |
775 | 775 | ||
776 | return cnt; | 776 | return cnt; |
777 | } | 777 | } |