aboutsummaryrefslogtreecommitdiffstats
path: root/fs/configfs/file.c
diff options
context:
space:
mode:
authorJosef "Jeff" Sipek <jsipek@cs.sunysb.edu>2006-12-08 05:36:47 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:43 -0500
commit867fa491a2722cee6964a30dfda86e0e02dcb400 (patch)
treeade467137c5a7b93e3e6562bd2ca4a397bf7b49f /fs/configfs/file.c
parenta4669ed8ed982dab494c5d4f2b32921e5a6531d8 (diff)
[PATCH] configfs: change uses of f_{dentry, vfsmnt} to use f_path
Change all the uses of f_{dentry,vfsmnt} to f_path.{dentry,mnt} in the configfs filesystem. Signed-off-by: Josef "Jeff" Sipek <jsipek@cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/configfs/file.c')
-rw-r--r--fs/configfs/file.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/configfs/file.c b/fs/configfs/file.c
index cf33fac68c84..2a7cb086e80c 100644
--- a/fs/configfs/file.c
+++ b/fs/configfs/file.c
@@ -134,7 +134,7 @@ configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *pp
134 134
135 down(&buffer->sem); 135 down(&buffer->sem);
136 if (buffer->needs_read_fill) { 136 if (buffer->needs_read_fill) {
137 if ((retval = fill_read_buffer(file->f_dentry,buffer))) 137 if ((retval = fill_read_buffer(file->f_path.dentry,buffer)))
138 goto out; 138 goto out;
139 } 139 }
140 pr_debug("%s: count = %zd, ppos = %lld, buf = %s\n", 140 pr_debug("%s: count = %zd, ppos = %lld, buf = %s\n",
@@ -222,7 +222,7 @@ configfs_write_file(struct file *file, const char __user *buf, size_t count, lof
222 down(&buffer->sem); 222 down(&buffer->sem);
223 len = fill_write_buffer(buffer, buf, count); 223 len = fill_write_buffer(buffer, buf, count);
224 if (len > 0) 224 if (len > 0)
225 len = flush_write_buffer(file->f_dentry, buffer, count); 225 len = flush_write_buffer(file->f_path.dentry, buffer, count);
226 if (len > 0) 226 if (len > 0)
227 *ppos += len; 227 *ppos += len;
228 up(&buffer->sem); 228 up(&buffer->sem);
@@ -231,8 +231,8 @@ configfs_write_file(struct file *file, const char __user *buf, size_t count, lof
231 231
232static int check_perm(struct inode * inode, struct file * file) 232static int check_perm(struct inode * inode, struct file * file)
233{ 233{
234 struct config_item *item = configfs_get_config_item(file->f_dentry->d_parent); 234 struct config_item *item = configfs_get_config_item(file->f_path.dentry->d_parent);
235 struct configfs_attribute * attr = to_attr(file->f_dentry); 235 struct configfs_attribute * attr = to_attr(file->f_path.dentry);
236 struct configfs_buffer * buffer; 236 struct configfs_buffer * buffer;
237 struct configfs_item_operations * ops = NULL; 237 struct configfs_item_operations * ops = NULL;
238 int error = 0; 238 int error = 0;
@@ -305,8 +305,8 @@ static int configfs_open_file(struct inode * inode, struct file * filp)
305 305
306static int configfs_release(struct inode * inode, struct file * filp) 306static int configfs_release(struct inode * inode, struct file * filp)
307{ 307{
308 struct config_item * item = to_item(filp->f_dentry->d_parent); 308 struct config_item * item = to_item(filp->f_path.dentry->d_parent);
309 struct configfs_attribute * attr = to_attr(filp->f_dentry); 309 struct configfs_attribute * attr = to_attr(filp->f_path.dentry);
310 struct module * owner = attr->ca_owner; 310 struct module * owner = attr->ca_owner;
311 struct configfs_buffer * buffer = filp->private_data; 311 struct configfs_buffer * buffer = filp->private_data;
312 312