From: Eric Sandeen Date: Tue, 9 Sep 2014 01:57:10 +0000 (+1000) Subject: xfs: lseek: the "whence" argument is called "whence" X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=59f9c004320704179913fa7c57645017ccf1b5c3;p=linux-beck.git 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 Reviewed-by: Brian Foster Reviewed-by: Jie Liu Signed-off-by: Dave Chinner --- 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 xfs_file_llseek( struct file *file, loff_t offset, - int origin) + int whence) { - switch (origin) { + switch (whence) { case SEEK_END: case SEEK_CUR: case SEEK_SET: - return generic_file_llseek(file, offset, origin); + return generic_file_llseek(file, offset, whence); case SEEK_HOLE: case SEEK_DATA: - return xfs_seek_hole_data(file, offset, origin); + return xfs_seek_hole_data(file, offset, whence); default: return -EINVAL; }