提交 16abef0e 编写于 作者: D David Sterba 提交者: Linus Torvalds

fs: use loff_t type instead of long long

Use offset type consistently.
Signed-off-by: NDavid Sterba <dsterba@suse.cz>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 e199ceee
...@@ -33,7 +33,7 @@ EXPORT_SYMBOL(generic_ro_fops); ...@@ -33,7 +33,7 @@ EXPORT_SYMBOL(generic_ro_fops);
loff_t generic_file_llseek(struct file *file, loff_t offset, int origin) 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; struct inode *inode = file->f_mapping->host;
mutex_lock(&inode->i_mutex); mutex_lock(&inode->i_mutex);
...@@ -60,7 +60,7 @@ EXPORT_SYMBOL(generic_file_llseek); ...@@ -60,7 +60,7 @@ EXPORT_SYMBOL(generic_file_llseek);
loff_t remote_llseek(struct file *file, loff_t offset, int origin) loff_t remote_llseek(struct file *file, loff_t offset, int origin)
{ {
long long retval; loff_t retval;
lock_kernel(); lock_kernel();
switch (origin) { switch (origin) {
...@@ -91,7 +91,7 @@ EXPORT_SYMBOL(no_llseek); ...@@ -91,7 +91,7 @@ EXPORT_SYMBOL(no_llseek);
loff_t default_llseek(struct file *file, loff_t offset, int origin) loff_t default_llseek(struct file *file, loff_t offset, int origin)
{ {
long long retval; loff_t retval;
lock_kernel(); lock_kernel();
switch (origin) { switch (origin) {
......
...@@ -239,7 +239,7 @@ static int traverse(struct seq_file *m, loff_t offset) ...@@ -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) loff_t seq_lseek(struct file *file, loff_t offset, int origin)
{ {
struct seq_file *m = (struct seq_file *)file->private_data; struct seq_file *m = (struct seq_file *)file->private_data;
long long retval = -EINVAL; loff_t retval = -EINVAL;
mutex_lock(&m->lock); mutex_lock(&m->lock);
m->version = file->f_version; m->version = file->f_version;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册