diff options
author | Eric Sandeen <sandeen@redhat.com> | 2014-09-08 21:57:10 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-09-08 21:57:10 -0400 |
commit | 59f9c004320704179913fa7c57645017ccf1b5c3 (patch) | |
tree | 73ecfb5867091852bf1510b01cd8a18863bba9d5 /fs/xfs/xfs_file.c | |
parent | 49c69591c80648c14ff87525e97ee6ebe3a343cb (diff) |
xfs: lseek: the "whence" argument is called "whence"
For some reason, the older commit:
965c8e5 lseek: the "whence" argument is called "whence"
lseek: the "whence" argument is called "whence"
But the kernel decided to call it "origin" instead.
Fix most of the sites.
left out xfs. So fix xfs.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 1da3b7db5bf7..0fe36e4d5cef 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -1322,16 +1322,16 @@ STATIC loff_t | |||
1322 | xfs_file_llseek( | 1322 | xfs_file_llseek( |
1323 | struct file *file, | 1323 | struct file *file, |
1324 | loff_t offset, | 1324 | loff_t offset, |
1325 | int origin) | 1325 | int whence) |
1326 | { | 1326 | { |
1327 | switch (origin) { | 1327 | switch (whence) { |
1328 | case SEEK_END: | 1328 | case SEEK_END: |
1329 | case SEEK_CUR: | 1329 | case SEEK_CUR: |
1330 | case SEEK_SET: | 1330 | case SEEK_SET: |
1331 | return generic_file_llseek(file, offset, origin); | 1331 | return generic_file_llseek(file, offset, whence); |
1332 | case SEEK_HOLE: | 1332 | case SEEK_HOLE: |
1333 | case SEEK_DATA: | 1333 | case SEEK_DATA: |
1334 | return xfs_seek_hole_data(file, offset, origin); | 1334 | return xfs_seek_hole_data(file, offset, whence); |
1335 | default: | 1335 | default: |
1336 | return -EINVAL; | 1336 | return -EINVAL; |
1337 | } | 1337 | } |