diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2012-12-17 18:59:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 20:15:12 -0500 |
commit | 965c8e59cfcf845ecde2265a1d1bfee5f011d302 (patch) | |
tree | 22758a99b4ecb475750966d5202200dc0e89876c /fs/configfs | |
parent | c0f041602c33bae10b8e321c49024490d03ced3d (diff) |
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>
Diffstat (limited to 'fs/configfs')
-rw-r--r-- | fs/configfs/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index 7414ae24a79b..712b10f64c70 100644 --- a/fs/configfs/dir.c +++ b/fs/configfs/dir.c | |||
@@ -1613,12 +1613,12 @@ static int configfs_readdir(struct file * filp, void * dirent, filldir_t filldir | |||
1613 | return 0; | 1613 | return 0; |
1614 | } | 1614 | } |
1615 | 1615 | ||
1616 | static loff_t configfs_dir_lseek(struct file * file, loff_t offset, int origin) | 1616 | static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence) |
1617 | { | 1617 | { |
1618 | struct dentry * dentry = file->f_path.dentry; | 1618 | struct dentry * dentry = file->f_path.dentry; |
1619 | 1619 | ||
1620 | mutex_lock(&dentry->d_inode->i_mutex); | 1620 | mutex_lock(&dentry->d_inode->i_mutex); |
1621 | switch (origin) { | 1621 | switch (whence) { |
1622 | case 1: | 1622 | case 1: |
1623 | offset += file->f_pos; | 1623 | offset += file->f_pos; |
1624 | case 0: | 1624 | case 0: |