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>
This commit is contained in:
Andrew Morton
2012-12-17 15:59:39 -08:00
committed by Linus Torvalds
szülő c0f041602c
commit 965c8e59cf
26 fájl változott, egészen pontosan 116 új sor hozzáadva és 116 régi sor törölve

Fájl megtekintése

@@ -151,13 +151,13 @@ static int pstore_file_open(struct inode *inode, struct file *file)
return 0;
}
static loff_t pstore_file_llseek(struct file *file, loff_t off, int origin)
static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence)
{
struct seq_file *sf = file->private_data;
if (sf->op)
return seq_lseek(file, off, origin);
return default_llseek(file, off, origin);
return seq_lseek(file, off, whence);
return default_llseek(file, off, whence);
}
static const struct file_operations pstore_file_operations = {