Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62165
b: refs/heads/master
c: 6a860c9
h: refs/heads/master
i:
  62163: 14ab804
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Jul 20, 2007
1 parent c0cdfce commit dcfde00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 9d1ca6f13cfedfd127f3be7e447bd6d922806a65
refs/heads/master: 6a860c979b35469e4d77da781a96bdb2ca05ae64
5 changes: 3 additions & 2 deletions trunk/fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ static int pipe_to_file(struct pipe_inode_info *pipe, struct pipe_buffer *buf,
ret = add_to_page_cache_lru(page, mapping, index,
GFP_KERNEL);
if (unlikely(ret))
goto out;
goto out_release;
}

ret = mapping->a_ops->prepare_write(file, page, offset, offset+this_len);
Expand Down Expand Up @@ -650,8 +650,9 @@ static int pipe_to_file(struct pipe_inode_info *pipe, struct pipe_buffer *buf,
*/
mark_page_accessed(page);
out:
page_cache_release(page);
unlock_page(page);
out_release:
page_cache_release(page);
out_ret:
return ret;
}
Expand Down

0 comments on commit dcfde00

Please sign in to comment.