lseek: the "whence" argument is called "whence"

But the kernel decided to call it "origin" instead.  Fix most of the
sites.

Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
此提交包含在:
Andrew Morton
2012-12-17 15:59:39 -08:00
提交者 Linus Torvalds
父節點 c0f041602c
當前提交 965c8e59cf
共有 26 個檔案被更改,包括 116 行新增116 行删除

查看文件

@@ -2675,12 +2675,12 @@ ftrace_notrace_open(struct inode *inode, struct file *file)
}
loff_t
ftrace_regex_lseek(struct file *file, loff_t offset, int origin)
ftrace_regex_lseek(struct file *file, loff_t offset, int whence)
{
loff_t ret;
if (file->f_mode & FMODE_READ)
ret = seq_lseek(file, offset, origin);
ret = seq_lseek(file, offset, whence);
else
file->f_pos = ret = 1;