]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/kernel/sysirix.c
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
[linux-2.6-omap-h63xx.git] / arch / mips / kernel / sysirix.c
index 93c74fefff766e9c3cc035a57011a3e62d992a1a..ee7790d9debe2e249e0ebf3480aaebb885fa4fe8 100644 (file)
@@ -486,10 +486,10 @@ asmlinkage int irix_syssgi(struct pt_regs *regs)
 
                switch (arg1) {
                case SGI_INV_SIZEOF:
-                       retval = sizeof (inventory_t);
+                       retval = sizeof(inventory_t);
                        break;
                case SGI_INV_READ:
-                       retval = dump_inventory_to_user (buffer, count);
+                       retval = dump_inventory_to_user(buffer, count);
                        break;
                default:
                        retval = -EINVAL;
@@ -669,7 +669,7 @@ asmlinkage int irix_mount(char __user *dev_name, char __user *dir_name,
 
 struct irix_statfs {
        short f_type;
-        long  f_bsize, f_frsize, f_blocks, f_bfree, f_files, f_ffree;
+       long  f_bsize, f_frsize, f_blocks, f_bfree, f_files, f_ffree;
        char  f_fname[6], f_fpack[6];
 };
 
@@ -732,7 +732,7 @@ asmlinkage int irix_fstatfs(unsigned int fd, struct irix_statfs __user *buf)
                goto out;
        }
 
-       error = vfs_statfs(file->f_dentry, &kbuf);
+       error = vfs_statfs(file->f_path.dentry, &kbuf);
        if (error)
                goto out_f;
 
@@ -778,7 +778,7 @@ asmlinkage int irix_times(struct tms __user *tbuf)
        int err = 0;
 
        if (tbuf) {
-               if (!access_ok(VERIFY_WRITE,tbuf,sizeof *tbuf))
+               if (!access_ok(VERIFY_WRITE, tbuf, sizeof *tbuf))
                        return -EFAULT;
 
                err = __put_user(current->utime, &tbuf->tms_utime);
@@ -959,7 +959,7 @@ static inline loff_t llseek(struct file *file, loff_t offset, int origin)
 
        fn = default_llseek;
        if (file->f_op && file->f_op->llseek)
-        fn = file->f_op->llseek;
+       fn = file->f_op->llseek;
        lock_kernel();
        retval = fn(file, offset, origin);
        unlock_kernel();
@@ -1041,10 +1041,10 @@ asmlinkage unsigned long irix_mmap32(unsigned long addr, size_t len, int prot,
                        unsigned long old_pos;
                        long max_size = offset + len;
 
-                       if (max_size > file->f_dentry->d_inode->i_size) {
-                               old_pos = sys_lseek (fd, max_size - 1, 0);
-                               sys_write (fd, (void __user *) "", 1);
-                               sys_lseek (fd, old_pos, 0);
+                       if (max_size > file->f_path.dentry->d_inode->i_size) {
+                               old_pos = sys_lseek(fd, max_size - 1, 0);
+                               sys_write(fd, (void __user *) "", 1);
+                               sys_lseek(fd, old_pos, 0);
                        }
                }
        }
@@ -1176,7 +1176,7 @@ static int irix_xstat32_xlate(struct kstat *stat, void __user *ubuf)
        ub.st_ctime1  = stat->atime.tv_nsec;
        ub.st_blksize = stat->blksize;
        ub.st_blocks  = stat->blocks;
-       strcpy (ub.st_fstype, "efs");
+       strcpy(ub.st_fstype, "efs");
 
        return copy_to_user(ubuf, &ub, sizeof(ub)) ? -EFAULT : 0;
 }
@@ -1208,7 +1208,7 @@ static int irix_xstat64_xlate(struct kstat *stat, void __user *ubuf)
        ks.st_nlink = (u32) stat->nlink;
        ks.st_uid = (s32) stat->uid;
        ks.st_gid = (s32) stat->gid;
-       ks.st_rdev = sysv_encode_dev (stat->rdev);
+       ks.st_rdev = sysv_encode_dev(stat->rdev);
        ks.st_pad2[0] = ks.st_pad2[1] = 0;
        ks.st_size = (long long) stat->size;
        ks.st_pad3 = 0;
@@ -1406,7 +1406,7 @@ asmlinkage int irix_fstatvfs(int fd, struct irix_statvfs __user *buf)
                error = -EBADF;
                goto out;
        }
-       error = vfs_statfs(file->f_dentry, &kbuf);
+       error = vfs_statfs(file->f_path.dentry, &kbuf);
        if (error)
                goto out_f;
 
@@ -1526,10 +1526,10 @@ asmlinkage int irix_mmap64(struct pt_regs *regs)
                        unsigned long old_pos;
                        long max_size = off2 + len;
 
-                       if (max_size > file->f_dentry->d_inode->i_size) {
-                               old_pos = sys_lseek (fd, max_size - 1, 0);
-                               sys_write (fd, (void __user *) "", 1);
-                               sys_lseek (fd, old_pos, 0);
+                       if (max_size > file->f_path.dentry->d_inode->i_size) {
+                               old_pos = sys_lseek(fd, max_size - 1, 0);
+                               sys_write(fd, (void __user *) "", 1);
+                               sys_lseek(fd, old_pos, 0);
                        }
                }
        }
@@ -1658,7 +1658,7 @@ asmlinkage int irix_fstatvfs64(int fd, struct irix_statvfs __user *buf)
                error = -EBADF;
                goto out;
        }
-       error = vfs_statfs(file->f_dentry, &kbuf);
+       error = vfs_statfs(file->f_path.dentry, &kbuf);
        if (error)
                goto out_f;