mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
fs/seq_file.c:seq_lseek(): fix switch statement indenting
[akpm@linux-foundation.org: checkpatch fixes] Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
80de7f7ae0
commit
5e62adef9e
@@ -308,27 +308,27 @@ loff_t seq_lseek(struct file *file, loff_t offset, int whence)
|
|||||||
mutex_lock(&m->lock);
|
mutex_lock(&m->lock);
|
||||||
m->version = file->f_version;
|
m->version = file->f_version;
|
||||||
switch (whence) {
|
switch (whence) {
|
||||||
case SEEK_CUR:
|
case SEEK_CUR:
|
||||||
offset += file->f_pos;
|
offset += file->f_pos;
|
||||||
case SEEK_SET:
|
case SEEK_SET:
|
||||||
if (offset < 0)
|
if (offset < 0)
|
||||||
break;
|
break;
|
||||||
retval = offset;
|
retval = offset;
|
||||||
if (offset != m->read_pos) {
|
if (offset != m->read_pos) {
|
||||||
while ((retval=traverse(m, offset)) == -EAGAIN)
|
while ((retval = traverse(m, offset)) == -EAGAIN)
|
||||||
;
|
;
|
||||||
if (retval) {
|
if (retval) {
|
||||||
/* with extreme prejudice... */
|
/* with extreme prejudice... */
|
||||||
file->f_pos = 0;
|
file->f_pos = 0;
|
||||||
m->read_pos = 0;
|
m->read_pos = 0;
|
||||||
m->version = 0;
|
m->version = 0;
|
||||||
m->index = 0;
|
m->index = 0;
|
||||||
m->count = 0;
|
m->count = 0;
|
||||||
} else {
|
} else {
|
||||||
m->read_pos = offset;
|
m->read_pos = offset;
|
||||||
retval = file->f_pos = offset;
|
retval = file->f_pos = offset;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
file->f_version = m->version;
|
file->f_version = m->version;
|
||||||
mutex_unlock(&m->lock);
|
mutex_unlock(&m->lock);
|
||||||
|
Reference in New Issue
Block a user