Skip to content

Commit

Permalink
fs: use loff_t type instead of long long
Browse files Browse the repository at this point in the history
Use offset type consistently.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Sterba authored and Linus Torvalds committed Apr 22, 2008
1 parent e199cee commit 16abef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fs/read_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ EXPORT_SYMBOL(generic_ro_fops);

loff_t generic_file_llseek(struct file *file, loff_t offset, int origin)
{
long long retval;
loff_t retval;
struct inode *inode = file->f_mapping->host;

mutex_lock(&inode->i_mutex);
Expand All @@ -60,7 +60,7 @@ EXPORT_SYMBOL(generic_file_llseek);

loff_t remote_llseek(struct file *file, loff_t offset, int origin)
{
long long retval;
loff_t retval;

lock_kernel();
switch (origin) {
Expand Down Expand Up @@ -91,7 +91,7 @@ EXPORT_SYMBOL(no_llseek);

loff_t default_llseek(struct file *file, loff_t offset, int origin)
{
long long retval;
loff_t retval;

lock_kernel();
switch (origin) {
Expand Down
2 changes: 1 addition & 1 deletion fs/seq_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static int traverse(struct seq_file *m, loff_t offset)
loff_t seq_lseek(struct file *file, loff_t offset, int origin)
{
struct seq_file *m = (struct seq_file *)file->private_data;
long long retval = -EINVAL;
loff_t retval = -EINVAL;

mutex_lock(&m->lock);
m->version = file->f_version;
Expand Down

0 comments on commit 16abef0

Please sign in to comment.