pioctl.c (4ac9137858e08a19f29feac4e1f4df7c268b0ba5) pioctl.c (1d957f9bf87da74f420424d16ece005202bbebd3)
1/*
2 * Pioctl operations for Coda.
3 * Original version: (C) 1996 Peter Braam
4 * Rewritten for Linux 2.1: (C) 1997 Carnegie Mellon University
5 *
6 * Carnegie Mellon encourages users of this code to contribute improvements
7 * to the Coda project. Contact Peter Braam <coda@cs.cmu.edu>.
8 */

--- 66 unchanged lines hidden (view full) ---

75 if ( error ) {
76 return error;
77 } else {
78 target_inode = nd.path.dentry->d_inode;
79 }
80
81 /* return if it is not a Coda inode */
82 if ( target_inode->i_sb != inode->i_sb ) {
1/*
2 * Pioctl operations for Coda.
3 * Original version: (C) 1996 Peter Braam
4 * Rewritten for Linux 2.1: (C) 1997 Carnegie Mellon University
5 *
6 * Carnegie Mellon encourages users of this code to contribute improvements
7 * to the Coda project. Contact Peter Braam <coda@cs.cmu.edu>.
8 */

--- 66 unchanged lines hidden (view full) ---

75 if ( error ) {
76 return error;
77 } else {
78 target_inode = nd.path.dentry->d_inode;
79 }
80
81 /* return if it is not a Coda inode */
82 if ( target_inode->i_sb != inode->i_sb ) {
83 path_release(&nd);
83 path_put(&nd.path);
84 return -EINVAL;
85 }
86
87 /* now proceed to make the upcall */
88 cnp = ITOC(target_inode);
89
90 error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data);
91
84 return -EINVAL;
85 }
86
87 /* now proceed to make the upcall */
88 cnp = ITOC(target_inode);
89
90 error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data);
91
92 path_release(&nd);
92 path_put(&nd.path);
93 return error;
94}
95
93 return error;
94}
95