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/libfs.c | |
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/libfs.c')
-rw-r--r-- | fs/libfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index 7cc37ca19cd8..35fc6e74cd88 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
@@ -81,11 +81,11 @@ int dcache_dir_close(struct inode *inode, struct file *file) | |||
81 | return 0; | 81 | return 0; |
82 | } | 82 | } |
83 | 83 | ||
84 | loff_t dcache_dir_lseek(struct file *file, loff_t offset, int origin) | 84 | loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) |
85 | { | 85 | { |
86 | struct dentry *dentry = file->f_path.dentry; | 86 | struct dentry *dentry = file->f_path.dentry; |
87 | mutex_lock(&dentry->d_inode->i_mutex); | 87 | mutex_lock(&dentry->d_inode->i_mutex); |
88 | switch (origin) { | 88 | switch (whence) { |
89 | case 1: | 89 | case 1: |
90 | offset += file->f_pos; | 90 | offset += file->f_pos; |
91 | case 0: | 91 | case 0: |