Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154076
b: refs/heads/master
c: 1962f39
h: refs/heads/master
v: v3
  • Loading branch information
Tao Ma authored and Joel Becker committed Jun 22, 2009
1 parent f272792 commit 5666047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c520dfbf391e1617ef61553f815b8006a066c44
refs/heads/master: 1962f39abbb2d5643a7d59169422661a2d58793d
6 changes: 3 additions & 3 deletions trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ static ssize_t ocfs2_file_splice_read(struct file *in,
size_t len,
unsigned int flags)
{
int ret = 0;
int ret = 0, lock_level = 0;
struct inode *inode = in->f_path.dentry->d_inode;

mlog_entry("(0x%p, 0x%p, %u, '%.*s')\n", in, pipe,
Expand All @@ -2037,12 +2037,12 @@ static ssize_t ocfs2_file_splice_read(struct file *in,
/*
* See the comment in ocfs2_file_aio_read()
*/
ret = ocfs2_inode_lock(inode, NULL, 0);
ret = ocfs2_inode_lock_atime(inode, in->f_vfsmnt, &lock_level);
if (ret < 0) {
mlog_errno(ret);
goto bail;
}
ocfs2_inode_unlock(inode, 0);
ocfs2_inode_unlock(inode, lock_level);

ret = generic_file_splice_read(in, ppos, pipe, len, flags);

Expand Down

0 comments on commit 5666047

Please sign in to comment.