| To: | Eric Sandeen <sandeen@xxxxxxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx>, Jeff Liu <jeff.liu@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] xfs: lseek: the "whence" argument is called "whence" |
| From: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Date: | Thu, 21 Aug 2014 14:30:20 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <53F64723.4070001@xxxxxxxxxxx> |
| References: | <53F55765.6030205@xxxxxxxxxx> <53F64723.4070001@xxxxxxxxxxx> |
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@xxxxxxxxxx>
---
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 1da3b7d..0fe36e4 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;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH V2] xfs: combine xfs_seek_hole & xfs_seek_data, Eric Sandeen |
|---|---|
| Next by Date: | Re: [PATCH 1/6] xfs: mmap write/read leaves bad state on pages, Jan Kara |
| Previous by Thread: | [PATCH V2] xfs: combine xfs_seek_hole & xfs_seek_data, Eric Sandeen |
| Next by Thread: | Re: [PATCH] xfs: lseek: the "whence" argument is called "whence", Brian Foster |
| Indexes: | [Date] [Thread] [Top] [All Lists] |