Skip to content

Commit

Permalink
xfs: Remove type argument from xfs_seek_data()/xfs_seek_hole()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pibroch authored and Ben Myers committed Aug 24, 2012
1 parent e599b32 commit 834ab12
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions fs/xfs/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,7 @@ xfs_vm_page_mkwrite(
STATIC loff_t
xfs_seek_data(
struct file *file,
loff_t start,
u32 type)
loff_t start)
{
struct inode *inode = file->f_mapping->host;
struct xfs_inode *ip = XFS_I(inode);
Expand Down Expand Up @@ -1029,8 +1028,7 @@ xfs_seek_data(
STATIC loff_t
xfs_seek_hole(
struct file *file,
loff_t start,
u32 type)
loff_t start)
{
struct inode *inode = file->f_mapping->host;
struct xfs_inode *ip = XFS_I(inode);
Expand Down Expand Up @@ -1092,9 +1090,9 @@ xfs_file_llseek(
case SEEK_SET:
return generic_file_llseek(file, offset, origin);
case SEEK_DATA:
return xfs_seek_data(file, offset, origin);
return xfs_seek_data(file, offset);
case SEEK_HOLE:
return xfs_seek_hole(file, offset, origin);
return xfs_seek_hole(file, offset);
default:
return -EINVAL;
}
Expand Down

0 comments on commit 834ab12

Please sign in to comment.