diff options
author | Jeff Liu <jeff.liu@oracle.com> | 2012-08-21 05:11:45 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-08-24 14:48:05 -0400 |
commit | 834ab12228fad777a11007a24cb6286b02c9a41c (patch) | |
tree | 56d0150997965882a238ebd9b5e0b213e69b8b1a /fs | |
parent | e599b3253c5e49f7a2a579eef2fc2aa066989ef5 (diff) |
xfs: Remove type argument from xfs_seek_data()/xfs_seek_hole()
The type is already indicated by the function naming explicitly, so this argument
can be omitted from those calls.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_file.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 56afcdb2377d..92ba18f841f1 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -962,8 +962,7 @@ xfs_vm_page_mkwrite( | |||
962 | STATIC loff_t | 962 | STATIC loff_t |
963 | xfs_seek_data( | 963 | xfs_seek_data( |
964 | struct file *file, | 964 | struct file *file, |
965 | loff_t start, | 965 | loff_t start) |
966 | u32 type) | ||
967 | { | 966 | { |
968 | struct inode *inode = file->f_mapping->host; | 967 | struct inode *inode = file->f_mapping->host; |
969 | struct xfs_inode *ip = XFS_I(inode); | 968 | struct xfs_inode *ip = XFS_I(inode); |
@@ -1029,8 +1028,7 @@ out_unlock: | |||
1029 | STATIC loff_t | 1028 | STATIC loff_t |
1030 | xfs_seek_hole( | 1029 | xfs_seek_hole( |
1031 | struct file *file, | 1030 | struct file *file, |
1032 | loff_t start, | 1031 | loff_t start) |
1033 | u32 type) | ||
1034 | { | 1032 | { |
1035 | struct inode *inode = file->f_mapping->host; | 1033 | struct inode *inode = file->f_mapping->host; |
1036 | struct xfs_inode *ip = XFS_I(inode); | 1034 | struct xfs_inode *ip = XFS_I(inode); |
@@ -1092,9 +1090,9 @@ xfs_file_llseek( | |||
1092 | case SEEK_SET: | 1090 | case SEEK_SET: |
1093 | return generic_file_llseek(file, offset, origin); | 1091 | return generic_file_llseek(file, offset, origin); |
1094 | case SEEK_DATA: | 1092 | case SEEK_DATA: |
1095 | return xfs_seek_data(file, offset, origin); | 1093 | return xfs_seek_data(file, offset); |
1096 | case SEEK_HOLE: | 1094 | case SEEK_HOLE: |
1097 | return xfs_seek_hole(file, offset, origin); | 1095 | return xfs_seek_hole(file, offset); |
1098 | default: | 1096 | default: |
1099 | return -EINVAL; | 1097 | return -EINVAL; |
1100 | } | 1098 | } |