Jerome Marchand
99dc829256
procfs: fix numbering in /proc/locks
...
The lock number in /proc/locks (first field) is implemented by a counter
(private field of struct seq_file) which is incremented at each call of
locks_show() and reset to 1 in locks_start() whatever the offset is. It
should be reset according to the actual position in the list. Because of
this, the numbering erratically restarts at 1 several times when reading a
long /proc/locks file.
Moreover, locks_show() can be called twice to print a single line thus
skipping a number. The counter should be incremented in locks_next().
And last, pos is a loff_t, which can be bigger than a pointer, so we don't
use the pointer as an integer anymore, and allocate a loff_t instead.
Signed-off-by: Jerome Marchand <jmarchan@redhat.com >
Cc: Pavel Emelyanov <xemul@parallels.com >
Cc: Matthew Wilcox <matthew@wil.cx >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2010-10-26 16:52:13 -07:00
..
2010-09-13 08:13:03 -05:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:01 -07:00
2010-10-26 16:52:05 -07:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:56 -07:00
2010-10-04 21:10:35 +02:00
2010-10-22 17:07:18 -07:00
2010-10-15 15:53:27 +02:00
2010-10-26 16:52:05 -07:00
2010-10-26 16:52:05 -07:00
2010-10-25 08:02:40 -07:00
2010-08-18 01:01:33 -04:00
2010-10-15 15:53:27 +02:00
2010-10-22 17:33:16 -07:00
2010-10-24 13:41:39 -07:00
2010-10-25 18:03:07 +02:00
2010-10-24 13:41:39 -07:00
2010-10-22 17:07:18 -07:00
2010-10-22 17:07:18 -07:00
2010-10-22 17:07:18 -07:00
2010-10-21 18:48:09 +02:00
2010-08-12 09:51:35 -07:00
2010-10-26 16:52:13 -07:00
2010-10-26 16:52:05 -07:00
2010-10-22 10:52:01 -07:00
2010-10-15 05:45:00 -07:00
2010-10-26 16:52:12 -07:00
2010-10-22 10:52:01 -07:00
2010-10-15 15:53:27 +02:00
2010-10-26 10:13:10 -07:00
2010-10-04 21:10:45 +02:00
2010-10-22 17:07:18 -07:00
2010-10-22 17:07:18 -07:00
2010-10-04 21:10:50 +02:00
2010-10-24 13:41:39 -07:00
2010-10-26 09:55:25 -07:00
2010-10-15 15:53:27 +02:00
2010-09-09 18:57:25 -07:00
2010-10-05 11:02:14 +02:00
2010-10-26 16:52:05 -07:00
2010-10-26 09:55:25 -07:00
2010-10-26 16:52:06 -07:00
2010-10-22 10:52:56 -07:00
2010-10-04 21:10:41 +02:00
2010-10-24 13:41:39 -07:00
2010-08-10 11:47:36 -07:00
2010-10-25 07:45:10 -07:00
2010-10-26 16:52:05 -07:00
2010-10-21 18:48:04 +02:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:47:39 -04:00
2010-10-26 16:52:05 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 19:36:42 -07:00
2010-08-11 08:59:23 -07:00
2010-10-22 16:34:03 -07:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:01 -07:00
2010-10-26 16:52:05 -07:00
2010-09-22 17:22:39 -07:00
2010-08-09 16:47:39 -04:00
2010-08-14 00:24:24 +02:00
2010-10-14 10:57:40 -07:00
2010-10-08 10:02:53 +01:00
2010-10-15 15:53:27 +02:00
2010-08-17 18:07:43 -07:00
2010-08-23 13:36:59 +02:00
2010-08-07 18:20:39 +02:00
2010-09-16 20:52:58 +02:00
2010-10-26 16:52:13 -07:00
2010-10-22 10:52:56 -07:00
2010-10-19 11:29:54 +02:00
2010-10-26 09:55:25 -07:00
2010-08-18 08:35:48 -04:00
2010-10-26 16:52:13 -07:00
2010-08-09 16:47:44 -04:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2010-10-26 16:52:05 -07:00
2010-09-09 18:57:25 -07:00
2010-10-15 15:53:27 +02:00
2010-08-18 08:35:48 -04:00
2010-08-11 08:59:02 -07:00
2010-08-18 08:35:46 -04:00
2010-10-26 16:52:10 -07:00
2010-08-18 01:04:22 -04:00
2010-08-10 11:39:13 -07:00
2010-08-18 08:35:48 -04:00
2010-08-14 00:24:24 +02:00
2010-10-26 16:52:13 -07:00
2010-09-10 08:42:48 -07:00
2010-10-26 16:52:13 -07:00
2010-09-22 15:33:14 -04:00
2010-08-18 06:24:41 -04:00
2010-08-18 08:35:48 -04:00
2010-10-04 21:10:43 +02:00
2010-10-15 15:53:27 +02:00
2010-08-18 08:35:47 -04:00
2010-10-21 14:56:33 +02:00
2010-08-18 08:35:48 -04:00
2010-10-15 15:53:46 +02:00
2010-08-09 20:45:05 -07:00
2010-09-23 13:28:23 +02:00
2010-10-26 10:13:10 -07:00
2010-08-07 18:52:56 +02:00
2010-08-13 16:53:13 -07:00
2010-08-09 16:48:44 -04:00
2010-08-18 08:35:48 -04:00
2010-08-09 16:47:43 -04:00
2010-10-15 15:53:27 +02:00
2010-08-13 16:53:13 -07:00