Skip to content

Commit

Permalink
procfs: Use generic_file_llseek in /proc/kmsg
Browse files Browse the repository at this point in the history
No need to hold the bkl to seek here, none of the other
fops callbacks use it.

Use generic_file_llseek explicitly.

Signed-off-by: Frederic Weisbecker <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: John Kacur <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Al Viro <[email protected]>
  • Loading branch information
fweisbec committed Apr 9, 2010
1 parent 34aacb2 commit 41775e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/proc/kmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static const struct file_operations proc_kmsg_operations = {
.poll = kmsg_poll,
.open = kmsg_open,
.release = kmsg_release,
.llseek = generic_file_llseek,
};

static int __init proc_kmsg_init(void)
Expand Down

0 comments on commit 41775e2

Please sign in to comment.