]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
fs: use loff_t type instead of long long
authorDavid Sterba <dsterba@suse.cz>
Tue, 22 Apr 2008 13:09:22 +0000 (15:09 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Apr 2008 22:17:11 +0000 (15:17 -0700)
Use offset type consistently.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/read_write.c
fs/seq_file.c

index 49a98718ecdf77ce2dae03b74530a0c90d13195f..f0d1240a5c6990c7639948fd9e2ce56f613cda2f 100644 (file)
@@ -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);
@@ -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) {
@@ -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) {
index 853770274f200ae36b49929b2afe55368ec1c047..9943408b315efe07b413af396269cca2e3630f22 100644 (file)
@@ -239,7 +239,7 @@ Eoverflow:
 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;