summaryrefslogtreecommitdiffstats
path: root/fs/seq_file.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2013-02-28 02:03:22 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-28 04:10:12 +0100
commit5e62adef9e1d3e8e26dfd6c95be484b955ad2927 (patch)
treef3d24b12ccfc55612a7b140e342f5023d92d131d /fs/seq_file.c
parentseq-file: use SEEK_ macros instead of hardcoded numbers (diff)
downloadlinux-5e62adef9e1d3e8e26dfd6c95be484b955ad2927.tar.xz
linux-5e62adef9e1d3e8e26dfd6c95be484b955ad2927.zip
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>
Diffstat (limited to 'fs/seq_file.c')
-rw-r--r--fs/seq_file.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c
index 11ba05608818..15c6304bab71 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -308,27 +308,27 @@ loff_t seq_lseek(struct file *file, loff_t offset, int whence)
mutex_lock(&m->lock);
m->version = file->f_version;
switch (whence) {
- case SEEK_CUR:
- offset += file->f_pos;
- case SEEK_SET:
- if (offset < 0)
- break;
- retval = offset;
- if (offset != m->read_pos) {
- while ((retval=traverse(m, offset)) == -EAGAIN)
- ;
- if (retval) {
- /* with extreme prejudice... */
- file->f_pos = 0;
- m->read_pos = 0;
- m->version = 0;
- m->index = 0;
- m->count = 0;
- } else {
- m->read_pos = offset;
- retval = file->f_pos = offset;
- }
+ case SEEK_CUR:
+ offset += file->f_pos;
+ case SEEK_SET:
+ if (offset < 0)
+ break;
+ retval = offset;
+ if (offset != m->read_pos) {
+ while ((retval = traverse(m, offset)) == -EAGAIN)
+ ;
+ if (retval) {
+ /* with extreme prejudice... */
+ file->f_pos = 0;
+ m->read_pos = 0;
+ m->version = 0;
+ m->index = 0;
+ m->count = 0;
+ } else {
+ m->read_pos = offset;
+ retval = file->f_pos = offset;
}
+ }
}
file->f_version = m->version;
mutex_unlock(&m->lock);