diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/atm/proc.c | 2 | ||||
-rw-r--r-- | net/bluetooth/rfcomm/tty.c | 4 | ||||
-rw-r--r-- | net/ipv4/netfilter/ipt_CLUSTERIP.c | 2 | ||||
-rw-r--r-- | net/ipv4/netfilter/ipt_recent.c | 2 | ||||
-rw-r--r-- | net/irda/ircomm/ircomm_tty_ioctl.c | 2 | ||||
-rw-r--r-- | net/netlink/af_netlink.c | 2 | ||||
-rw-r--r-- | net/socket.c | 16 | ||||
-rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 2 | ||||
-rw-r--r-- | net/sunrpc/cache.c | 10 | ||||
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 8 | ||||
-rw-r--r-- | net/unix/garbage.c | 2 |
11 files changed, 26 insertions, 26 deletions
diff --git a/net/atm/proc.c b/net/atm/proc.c index 91fe5f53ff11..739866bfe9e9 100644 --- a/net/atm/proc.c +++ b/net/atm/proc.c | |||
@@ -393,7 +393,7 @@ static ssize_t proc_dev_atm_read(struct file *file, char __user *buf, | |||
393 | if (count == 0) return 0; | 393 | if (count == 0) return 0; |
394 | page = get_zeroed_page(GFP_KERNEL); | 394 | page = get_zeroed_page(GFP_KERNEL); |
395 | if (!page) return -ENOMEM; | 395 | if (!page) return -ENOMEM; |
396 | dev = PDE(file->f_dentry->d_inode)->data; | 396 | dev = PDE(file->f_path.dentry->d_inode)->data; |
397 | if (!dev->ops->proc_read) | 397 | if (!dev->ops->proc_read) |
398 | length = -EINVAL; | 398 | length = -EINVAL; |
399 | else { | 399 | else { |
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index 1fb5d42f37ae..e0e0d09023b2 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c | |||
@@ -752,9 +752,9 @@ static int rfcomm_tty_ioctl(struct tty_struct *tty, struct file *filp, unsigned | |||
752 | return -ENOIOCTLCMD; | 752 | return -ENOIOCTLCMD; |
753 | } | 753 | } |
754 | 754 | ||
755 | static void rfcomm_tty_set_termios(struct tty_struct *tty, struct termios *old) | 755 | static void rfcomm_tty_set_termios(struct tty_struct *tty, struct ktermios *old) |
756 | { | 756 | { |
757 | struct termios *new = (struct termios *) tty->termios; | 757 | struct ktermios *new = tty->termios; |
758 | int old_baud_rate = tty_termios_baud_rate(old); | 758 | int old_baud_rate = tty_termios_baud_rate(old); |
759 | int new_baud_rate = tty_termios_baud_rate(new); | 759 | int new_baud_rate = tty_termios_baud_rate(new); |
760 | 760 | ||
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c index 098365062234..fef56ae61abe 100644 --- a/net/ipv4/netfilter/ipt_CLUSTERIP.c +++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c | |||
@@ -683,7 +683,7 @@ static ssize_t clusterip_proc_write(struct file *file, const char __user *input, | |||
683 | { | 683 | { |
684 | #define PROC_WRITELEN 10 | 684 | #define PROC_WRITELEN 10 |
685 | char buffer[PROC_WRITELEN+1]; | 685 | char buffer[PROC_WRITELEN+1]; |
686 | struct proc_dir_entry *pde = PDE(file->f_dentry->d_inode); | 686 | struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); |
687 | struct clusterip_config *c = pde->data; | 687 | struct clusterip_config *c = pde->data; |
688 | unsigned long nodenum; | 688 | unsigned long nodenum; |
689 | 689 | ||
diff --git a/net/ipv4/netfilter/ipt_recent.c b/net/ipv4/netfilter/ipt_recent.c index 126db44e71a8..4db0e73c56f1 100644 --- a/net/ipv4/netfilter/ipt_recent.c +++ b/net/ipv4/netfilter/ipt_recent.c | |||
@@ -401,7 +401,7 @@ static int recent_seq_open(struct inode *inode, struct file *file) | |||
401 | static ssize_t recent_proc_write(struct file *file, const char __user *input, | 401 | static ssize_t recent_proc_write(struct file *file, const char __user *input, |
402 | size_t size, loff_t *loff) | 402 | size_t size, loff_t *loff) |
403 | { | 403 | { |
404 | struct proc_dir_entry *pde = PDE(file->f_dentry->d_inode); | 404 | struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); |
405 | struct recent_table *t = pde->data; | 405 | struct recent_table *t = pde->data; |
406 | struct recent_entry *e; | 406 | struct recent_entry *e; |
407 | char buf[sizeof("+255.255.255.255")], *c = buf; | 407 | char buf[sizeof("+255.255.255.255")], *c = buf; |
diff --git a/net/irda/ircomm/ircomm_tty_ioctl.c b/net/irda/ircomm/ircomm_tty_ioctl.c index 197e3e7ed7e2..75e39ea599d8 100644 --- a/net/irda/ircomm/ircomm_tty_ioctl.c +++ b/net/irda/ircomm/ircomm_tty_ioctl.c | |||
@@ -146,7 +146,7 @@ static void ircomm_tty_change_speed(struct ircomm_tty_cb *self) | |||
146 | * do something rational. | 146 | * do something rational. |
147 | */ | 147 | */ |
148 | void ircomm_tty_set_termios(struct tty_struct *tty, | 148 | void ircomm_tty_set_termios(struct tty_struct *tty, |
149 | struct termios *old_termios) | 149 | struct ktermios *old_termios) |
150 | { | 150 | { |
151 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data; | 151 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data; |
152 | unsigned int cflag = tty->termios->c_cflag; | 152 | unsigned int cflag = tty->termios->c_cflag; |
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 3baafb10f8f3..276131fe56dd 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -699,7 +699,7 @@ static struct sock *netlink_getsockbypid(struct sock *ssk, u32 pid) | |||
699 | 699 | ||
700 | struct sock *netlink_getsockbyfilp(struct file *filp) | 700 | struct sock *netlink_getsockbyfilp(struct file *filp) |
701 | { | 701 | { |
702 | struct inode *inode = filp->f_dentry->d_inode; | 702 | struct inode *inode = filp->f_path.dentry->d_inode; |
703 | struct sock *sock; | 703 | struct sock *sock; |
704 | 704 | ||
705 | if (!S_ISSOCK(inode->i_mode)) | 705 | if (!S_ISSOCK(inode->i_mode)) |
diff --git a/net/socket.c b/net/socket.c index 29ea1de43ecb..4e396312f8d5 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -362,20 +362,20 @@ static int sock_attach_fd(struct socket *sock, struct file *file) | |||
362 | this.name = name; | 362 | this.name = name; |
363 | this.hash = 0; | 363 | this.hash = 0; |
364 | 364 | ||
365 | file->f_dentry = d_alloc(sock_mnt->mnt_sb->s_root, &this); | 365 | file->f_path.dentry = d_alloc(sock_mnt->mnt_sb->s_root, &this); |
366 | if (unlikely(!file->f_dentry)) | 366 | if (unlikely(!file->f_path.dentry)) |
367 | return -ENOMEM; | 367 | return -ENOMEM; |
368 | 368 | ||
369 | file->f_dentry->d_op = &sockfs_dentry_operations; | 369 | file->f_path.dentry->d_op = &sockfs_dentry_operations; |
370 | /* | 370 | /* |
371 | * We dont want to push this dentry into global dentry hash table. | 371 | * We dont want to push this dentry into global dentry hash table. |
372 | * We pretend dentry is already hashed, by unsetting DCACHE_UNHASHED | 372 | * We pretend dentry is already hashed, by unsetting DCACHE_UNHASHED |
373 | * This permits a working /proc/$pid/fd/XXX on sockets | 373 | * This permits a working /proc/$pid/fd/XXX on sockets |
374 | */ | 374 | */ |
375 | file->f_dentry->d_flags &= ~DCACHE_UNHASHED; | 375 | file->f_path.dentry->d_flags &= ~DCACHE_UNHASHED; |
376 | d_instantiate(file->f_dentry, SOCK_INODE(sock)); | 376 | d_instantiate(file->f_path.dentry, SOCK_INODE(sock)); |
377 | file->f_vfsmnt = mntget(sock_mnt); | 377 | file->f_path.mnt = mntget(sock_mnt); |
378 | file->f_mapping = file->f_dentry->d_inode->i_mapping; | 378 | file->f_mapping = file->f_path.dentry->d_inode->i_mapping; |
379 | 379 | ||
380 | sock->file = file; | 380 | sock->file = file; |
381 | file->f_op = SOCK_INODE(sock)->i_fop = &socket_file_ops; | 381 | file->f_op = SOCK_INODE(sock)->i_fop = &socket_file_ops; |
@@ -413,7 +413,7 @@ static struct socket *sock_from_file(struct file *file, int *err) | |||
413 | if (file->f_op == &socket_file_ops) | 413 | if (file->f_op == &socket_file_ops) |
414 | return file->private_data; /* set in sock_map_fd */ | 414 | return file->private_data; /* set in sock_map_fd */ |
415 | 415 | ||
416 | inode = file->f_dentry->d_inode; | 416 | inode = file->f_path.dentry->d_inode; |
417 | if (!S_ISSOCK(inode->i_mode)) { | 417 | if (!S_ISSOCK(inode->i_mode)) { |
418 | *err = -ENOTSOCK; | 418 | *err = -ENOTSOCK; |
419 | return NULL; | 419 | return NULL; |
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index a02ecc1f230d..e1a104abb782 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c | |||
@@ -501,7 +501,7 @@ gss_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) | |||
501 | if (!buf) | 501 | if (!buf) |
502 | goto out; | 502 | goto out; |
503 | 503 | ||
504 | clnt = RPC_I(filp->f_dentry->d_inode)->private; | 504 | clnt = RPC_I(filp->f_path.dentry->d_inode)->private; |
505 | err = -EFAULT; | 505 | err = -EFAULT; |
506 | if (copy_from_user(buf, src, mlen)) | 506 | if (copy_from_user(buf, src, mlen)) |
507 | goto err; | 507 | goto err; |
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index d96fd466a9a4..80aff0474572 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -670,7 +670,7 @@ cache_read(struct file *filp, char __user *buf, size_t count, loff_t *ppos) | |||
670 | { | 670 | { |
671 | struct cache_reader *rp = filp->private_data; | 671 | struct cache_reader *rp = filp->private_data; |
672 | struct cache_request *rq; | 672 | struct cache_request *rq; |
673 | struct cache_detail *cd = PDE(filp->f_dentry->d_inode)->data; | 673 | struct cache_detail *cd = PDE(filp->f_path.dentry->d_inode)->data; |
674 | int err; | 674 | int err; |
675 | 675 | ||
676 | if (count == 0) | 676 | if (count == 0) |
@@ -747,7 +747,7 @@ cache_write(struct file *filp, const char __user *buf, size_t count, | |||
747 | loff_t *ppos) | 747 | loff_t *ppos) |
748 | { | 748 | { |
749 | int err; | 749 | int err; |
750 | struct cache_detail *cd = PDE(filp->f_dentry->d_inode)->data; | 750 | struct cache_detail *cd = PDE(filp->f_path.dentry->d_inode)->data; |
751 | 751 | ||
752 | if (count == 0) | 752 | if (count == 0) |
753 | return 0; | 753 | return 0; |
@@ -778,7 +778,7 @@ cache_poll(struct file *filp, poll_table *wait) | |||
778 | unsigned int mask; | 778 | unsigned int mask; |
779 | struct cache_reader *rp = filp->private_data; | 779 | struct cache_reader *rp = filp->private_data; |
780 | struct cache_queue *cq; | 780 | struct cache_queue *cq; |
781 | struct cache_detail *cd = PDE(filp->f_dentry->d_inode)->data; | 781 | struct cache_detail *cd = PDE(filp->f_path.dentry->d_inode)->data; |
782 | 782 | ||
783 | poll_wait(filp, &queue_wait, wait); | 783 | poll_wait(filp, &queue_wait, wait); |
784 | 784 | ||
@@ -1254,7 +1254,7 @@ static struct file_operations content_file_operations = { | |||
1254 | static ssize_t read_flush(struct file *file, char __user *buf, | 1254 | static ssize_t read_flush(struct file *file, char __user *buf, |
1255 | size_t count, loff_t *ppos) | 1255 | size_t count, loff_t *ppos) |
1256 | { | 1256 | { |
1257 | struct cache_detail *cd = PDE(file->f_dentry->d_inode)->data; | 1257 | struct cache_detail *cd = PDE(file->f_path.dentry->d_inode)->data; |
1258 | char tbuf[20]; | 1258 | char tbuf[20]; |
1259 | unsigned long p = *ppos; | 1259 | unsigned long p = *ppos; |
1260 | int len; | 1260 | int len; |
@@ -1275,7 +1275,7 @@ static ssize_t read_flush(struct file *file, char __user *buf, | |||
1275 | static ssize_t write_flush(struct file * file, const char __user * buf, | 1275 | static ssize_t write_flush(struct file * file, const char __user * buf, |
1276 | size_t count, loff_t *ppos) | 1276 | size_t count, loff_t *ppos) |
1277 | { | 1277 | { |
1278 | struct cache_detail *cd = PDE(file->f_dentry->d_inode)->data; | 1278 | struct cache_detail *cd = PDE(file->f_path.dentry->d_inode)->data; |
1279 | char tbuf[20]; | 1279 | char tbuf[20]; |
1280 | char *ep; | 1280 | char *ep; |
1281 | long flushtime; | 1281 | long flushtime; |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 19703aa9659e..89273d35e0cc 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -214,7 +214,7 @@ out: | |||
214 | static ssize_t | 214 | static ssize_t |
215 | rpc_pipe_read(struct file *filp, char __user *buf, size_t len, loff_t *offset) | 215 | rpc_pipe_read(struct file *filp, char __user *buf, size_t len, loff_t *offset) |
216 | { | 216 | { |
217 | struct inode *inode = filp->f_dentry->d_inode; | 217 | struct inode *inode = filp->f_path.dentry->d_inode; |
218 | struct rpc_inode *rpci = RPC_I(inode); | 218 | struct rpc_inode *rpci = RPC_I(inode); |
219 | struct rpc_pipe_msg *msg; | 219 | struct rpc_pipe_msg *msg; |
220 | int res = 0; | 220 | int res = 0; |
@@ -257,7 +257,7 @@ out_unlock: | |||
257 | static ssize_t | 257 | static ssize_t |
258 | rpc_pipe_write(struct file *filp, const char __user *buf, size_t len, loff_t *offset) | 258 | rpc_pipe_write(struct file *filp, const char __user *buf, size_t len, loff_t *offset) |
259 | { | 259 | { |
260 | struct inode *inode = filp->f_dentry->d_inode; | 260 | struct inode *inode = filp->f_path.dentry->d_inode; |
261 | struct rpc_inode *rpci = RPC_I(inode); | 261 | struct rpc_inode *rpci = RPC_I(inode); |
262 | int res; | 262 | int res; |
263 | 263 | ||
@@ -275,7 +275,7 @@ rpc_pipe_poll(struct file *filp, struct poll_table_struct *wait) | |||
275 | struct rpc_inode *rpci; | 275 | struct rpc_inode *rpci; |
276 | unsigned int mask = 0; | 276 | unsigned int mask = 0; |
277 | 277 | ||
278 | rpci = RPC_I(filp->f_dentry->d_inode); | 278 | rpci = RPC_I(filp->f_path.dentry->d_inode); |
279 | poll_wait(filp, &rpci->waitq, wait); | 279 | poll_wait(filp, &rpci->waitq, wait); |
280 | 280 | ||
281 | mask = POLLOUT | POLLWRNORM; | 281 | mask = POLLOUT | POLLWRNORM; |
@@ -290,7 +290,7 @@ static int | |||
290 | rpc_pipe_ioctl(struct inode *ino, struct file *filp, | 290 | rpc_pipe_ioctl(struct inode *ino, struct file *filp, |
291 | unsigned int cmd, unsigned long arg) | 291 | unsigned int cmd, unsigned long arg) |
292 | { | 292 | { |
293 | struct rpc_inode *rpci = RPC_I(filp->f_dentry->d_inode); | 293 | struct rpc_inode *rpci = RPC_I(filp->f_path.dentry->d_inode); |
294 | int len; | 294 | int len; |
295 | 295 | ||
296 | switch (cmd) { | 296 | switch (cmd) { |
diff --git a/net/unix/garbage.c b/net/unix/garbage.c index 746c2f4a5fa6..f14ad6635fcc 100644 --- a/net/unix/garbage.c +++ b/net/unix/garbage.c | |||
@@ -96,7 +96,7 @@ atomic_t unix_tot_inflight = ATOMIC_INIT(0); | |||
96 | static struct sock *unix_get_socket(struct file *filp) | 96 | static struct sock *unix_get_socket(struct file *filp) |
97 | { | 97 | { |
98 | struct sock *u_sock = NULL; | 98 | struct sock *u_sock = NULL; |
99 | struct inode *inode = filp->f_dentry->d_inode; | 99 | struct inode *inode = filp->f_path.dentry->d_inode; |
100 | 100 | ||
101 | /* | 101 | /* |
102 | * Socket ? | 102 | * Socket ? |