file.c (b84e06c58fdefdc42931f771dc295e63f4b27365) | file.c (cc0dd2d1052aede2946ad1338a8f6f5d5c604740) |
---|---|
1/* 2 * linux/fs/nfs/file.c 3 * 4 * Copyright (C) 1992 Rick Sladkey 5 * 6 * Changes Copyright (C) 1994 by Florian La Roche 7 * - Do not copy data too often around in the kernel. 8 * - In nfs_file_read the return value of kmalloc wasn't checked. --- 105 unchanged lines hidden (view full) --- 114/* 115 * Open file 116 */ 117static int 118nfs_file_open(struct inode *inode, struct file *filp) 119{ 120 int res; 121 | 1/* 2 * linux/fs/nfs/file.c 3 * 4 * Copyright (C) 1992 Rick Sladkey 5 * 6 * Changes Copyright (C) 1994 by Florian La Roche 7 * - Do not copy data too often around in the kernel. 8 * - In nfs_file_read the return value of kmalloc wasn't checked. --- 105 unchanged lines hidden (view full) --- 114/* 115 * Open file 116 */ 117static int 118nfs_file_open(struct inode *inode, struct file *filp) 119{ 120 int res; 121 |
122 dfprintk(VFS, "NFS: open file(%s/%s)\n", 123 filp->f_path.dentry->d_parent->d_name.name, 124 filp->f_path.dentry->d_name.name); 125 |
|
122 res = nfs_check_flags(filp->f_flags); 123 if (res) 124 return res; 125 126 nfs_inc_stats(inode, NFSIOS_VFSOPEN); 127 lock_kernel(); 128 res = NFS_PROTO(inode)->file_open(inode, filp); 129 unlock_kernel(); --- 561 unchanged lines hidden --- | 126 res = nfs_check_flags(filp->f_flags); 127 if (res) 128 return res; 129 130 nfs_inc_stats(inode, NFSIOS_VFSOPEN); 131 lock_kernel(); 132 res = NFS_PROTO(inode)->file_open(inode, filp); 133 unlock_kernel(); --- 561 unchanged lines hidden --- |