aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 05:37:25 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:48 -0500
commitd28c91740ae2cd1d963f9e4e3889789894cb6d52 (patch)
tree0f519133422e1248b6e7519960877dd062f4c2b5 /fs/ocfs2/file.c
parent6db5fc5d536560e31978c6911b1f5662e42083ac (diff)
[PATCH] struct path: convert ocfs2
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 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 8786b3c490aa..e9a82ad95c1e 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -68,7 +68,7 @@ static int ocfs2_file_open(struct inode *inode, struct file *file)
68 struct ocfs2_inode_info *oi = OCFS2_I(inode); 68 struct ocfs2_inode_info *oi = OCFS2_I(inode);
69 69
70 mlog_entry("(0x%p, 0x%p, '%.*s')\n", inode, file, 70 mlog_entry("(0x%p, 0x%p, '%.*s')\n", inode, file,
71 file->f_dentry->d_name.len, file->f_dentry->d_name.name); 71 file->f_path.dentry->d_name.len, file->f_path.dentry->d_name.name);
72 72
73 spin_lock(&oi->ip_lock); 73 spin_lock(&oi->ip_lock);
74 74
@@ -98,8 +98,8 @@ static int ocfs2_file_release(struct inode *inode, struct file *file)
98 struct ocfs2_inode_info *oi = OCFS2_I(inode); 98 struct ocfs2_inode_info *oi = OCFS2_I(inode);
99 99
100 mlog_entry("(0x%p, 0x%p, '%.*s')\n", inode, file, 100 mlog_entry("(0x%p, 0x%p, '%.*s')\n", inode, file,
101 file->f_dentry->d_name.len, 101 file->f_path.dentry->d_name.len,
102 file->f_dentry->d_name.name); 102 file->f_path.dentry->d_name.name);
103 103
104 spin_lock(&oi->ip_lock); 104 spin_lock(&oi->ip_lock);
105 if (!--oi->ip_open_count) 105 if (!--oi->ip_open_count)
@@ -1131,13 +1131,13 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
1131{ 1131{
1132 int ret, rw_level, have_alloc_sem = 0; 1132 int ret, rw_level, have_alloc_sem = 0;
1133 struct file *filp = iocb->ki_filp; 1133 struct file *filp = iocb->ki_filp;
1134 struct inode *inode = filp->f_dentry->d_inode; 1134 struct inode *inode = filp->f_path.dentry->d_inode;
1135 int appending = filp->f_flags & O_APPEND ? 1 : 0; 1135 int appending = filp->f_flags & O_APPEND ? 1 : 0;
1136 1136
1137 mlog_entry("(0x%p, %u, '%.*s')\n", filp, 1137 mlog_entry("(0x%p, %u, '%.*s')\n", filp,
1138 (unsigned int)nr_segs, 1138 (unsigned int)nr_segs,
1139 filp->f_dentry->d_name.len, 1139 filp->f_path.dentry->d_name.len,
1140 filp->f_dentry->d_name.name); 1140 filp->f_path.dentry->d_name.name);
1141 1141
1142 /* happy write of zero bytes */ 1142 /* happy write of zero bytes */
1143 if (iocb->ki_left == 0) 1143 if (iocb->ki_left == 0)
@@ -1159,7 +1159,7 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
1159 goto out; 1159 goto out;
1160 } 1160 }
1161 1161
1162 ret = ocfs2_prepare_inode_for_write(filp->f_dentry, &iocb->ki_pos, 1162 ret = ocfs2_prepare_inode_for_write(filp->f_path.dentry, &iocb->ki_pos,
1163 iocb->ki_left, appending); 1163 iocb->ki_left, appending);
1164 if (ret < 0) { 1164 if (ret < 0) {
1165 mlog_errno(ret); 1165 mlog_errno(ret);
@@ -1207,12 +1207,12 @@ static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe,
1207 unsigned int flags) 1207 unsigned int flags)
1208{ 1208{
1209 int ret; 1209 int ret;
1210 struct inode *inode = out->f_dentry->d_inode; 1210 struct inode *inode = out->f_path.dentry->d_inode;
1211 1211
1212 mlog_entry("(0x%p, 0x%p, %u, '%.*s')\n", out, pipe, 1212 mlog_entry("(0x%p, 0x%p, %u, '%.*s')\n", out, pipe,
1213 (unsigned int)len, 1213 (unsigned int)len,
1214 out->f_dentry->d_name.len, 1214 out->f_path.dentry->d_name.len,
1215 out->f_dentry->d_name.name); 1215 out->f_path.dentry->d_name.name);
1216 1216
1217 inode_double_lock(inode, pipe->inode); 1217 inode_double_lock(inode, pipe->inode);
1218 1218
@@ -1222,7 +1222,7 @@ static ssize_t ocfs2_file_splice_write(struct pipe_inode_info *pipe,
1222 goto out; 1222 goto out;
1223 } 1223 }
1224 1224
1225 ret = ocfs2_prepare_inode_for_write(out->f_dentry, ppos, len, 0); 1225 ret = ocfs2_prepare_inode_for_write(out->f_path.dentry, ppos, len, 0);
1226 if (ret < 0) { 1226 if (ret < 0) {
1227 mlog_errno(ret); 1227 mlog_errno(ret);
1228 goto out_unlock; 1228 goto out_unlock;
@@ -1247,12 +1247,12 @@ static ssize_t ocfs2_file_splice_read(struct file *in,
1247 unsigned int flags) 1247 unsigned int flags)
1248{ 1248{
1249 int ret = 0; 1249 int ret = 0;
1250 struct inode *inode = in->f_dentry->d_inode; 1250 struct inode *inode = in->f_path.dentry->d_inode;
1251 1251
1252 mlog_entry("(0x%p, 0x%p, %u, '%.*s')\n", in, pipe, 1252 mlog_entry("(0x%p, 0x%p, %u, '%.*s')\n", in, pipe,
1253 (unsigned int)len, 1253 (unsigned int)len,
1254 in->f_dentry->d_name.len, 1254 in->f_path.dentry->d_name.len,
1255 in->f_dentry->d_name.name); 1255 in->f_path.dentry->d_name.name);
1256 1256
1257 /* 1257 /*
1258 * See the comment in ocfs2_file_aio_read() 1258 * See the comment in ocfs2_file_aio_read()
@@ -1278,12 +1278,12 @@ static ssize_t ocfs2_file_aio_read(struct kiocb *iocb,
1278{ 1278{
1279 int ret = 0, rw_level = -1, have_alloc_sem = 0, lock_level = 0; 1279 int ret = 0, rw_level = -1, have_alloc_sem = 0, lock_level = 0;
1280 struct file *filp = iocb->ki_filp; 1280 struct file *filp = iocb->ki_filp;
1281 struct inode *inode = filp->f_dentry->d_inode; 1281 struct inode *inode = filp->f_path.dentry->d_inode;
1282 1282
1283 mlog_entry("(0x%p, %u, '%.*s')\n", filp, 1283 mlog_entry("(0x%p, %u, '%.*s')\n", filp,
1284 (unsigned int)nr_segs, 1284 (unsigned int)nr_segs,
1285 filp->f_dentry->d_name.len, 1285 filp->f_path.dentry->d_name.len,
1286 filp->f_dentry->d_name.name); 1286 filp->f_path.dentry->d_name.name);
1287 1287
1288 if (!inode) { 1288 if (!inode) {
1289 ret = -EINVAL; 1289 ret = -EINVAL;