diff options
Diffstat (limited to 'fs/ocfs2/dlmfs/dlmfs.c')
-rw-r--r-- | fs/ocfs2/dlmfs/dlmfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index 16b712d260d4..4c5fc8d77dc2 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
@@ -224,7 +224,7 @@ static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr) | |||
224 | static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait) | 224 | static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait) |
225 | { | 225 | { |
226 | int event = 0; | 226 | int event = 0; |
227 | struct inode *inode = file->f_path.dentry->d_inode; | 227 | struct inode *inode = file_inode(file); |
228 | struct dlmfs_inode_private *ip = DLMFS_I(inode); | 228 | struct dlmfs_inode_private *ip = DLMFS_I(inode); |
229 | 229 | ||
230 | poll_wait(file, &ip->ip_lockres.l_event, wait); | 230 | poll_wait(file, &ip->ip_lockres.l_event, wait); |
@@ -245,7 +245,7 @@ static ssize_t dlmfs_file_read(struct file *filp, | |||
245 | int bytes_left; | 245 | int bytes_left; |
246 | ssize_t readlen, got; | 246 | ssize_t readlen, got; |
247 | char *lvb_buf; | 247 | char *lvb_buf; |
248 | struct inode *inode = filp->f_path.dentry->d_inode; | 248 | struct inode *inode = file_inode(filp); |
249 | 249 | ||
250 | mlog(0, "inode %lu, count = %zu, *ppos = %llu\n", | 250 | mlog(0, "inode %lu, count = %zu, *ppos = %llu\n", |
251 | inode->i_ino, count, *ppos); | 251 | inode->i_ino, count, *ppos); |
@@ -293,7 +293,7 @@ static ssize_t dlmfs_file_write(struct file *filp, | |||
293 | int bytes_left; | 293 | int bytes_left; |
294 | ssize_t writelen; | 294 | ssize_t writelen; |
295 | char *lvb_buf; | 295 | char *lvb_buf; |
296 | struct inode *inode = filp->f_path.dentry->d_inode; | 296 | struct inode *inode = file_inode(filp); |
297 | 297 | ||
298 | mlog(0, "inode %lu, count = %zu, *ppos = %llu\n", | 298 | mlog(0, "inode %lu, count = %zu, *ppos = %llu\n", |
299 | inode->i_ino, count, *ppos); | 299 | inode->i_ino, count, *ppos); |