fs/proc/task_mmu.c: update m->version in the main loop in m_start()
authorOleg Nesterov <oleg@redhat.com>
Thu, 9 Oct 2014 22:25:43 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:25:49 +0000 (22:25 -0400)
commit557c2d8a73dc078817ba6949697ceb8c0f3f7362
treed9e8b719e407e94ae69dba39ad9d3937187251df
parentb8c20a9b85b057c850f63ee4c63531a356d8596a
fs/proc/task_mmu.c: update m->version in the main loop in m_start()

Change the main loop in m_start() to update m->version. Mostly for
consistency, but this can help to avoid the same loop if the very
1st ->show() fails due to seq_overflow().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/task_mmu.c