aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 05:37:42 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:50 -0500
commit303b46bb77a4b1679fd39d7ab5597630743e0ff5 (patch)
tree92581d460c21dfccdd4458122c553c90ecbcb014 /net/sunrpc/cache.c
parent1250ca4c8f48de482ec7c476cb024fe93ad1fbb3 (diff)
[PATCH] struct path: convert sunrpc
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r--net/sunrpc/cache.c10
1 files changed, 5 insertions, 5 deletions
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 = {
1254static ssize_t read_flush(struct file *file, char __user *buf, 1254static 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,
1275static ssize_t write_flush(struct file * file, const char __user * buf, 1275static 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;