diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2014-08-19 11:32:22 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-17 16:38:20 -0400 |
commit | a583c02664eea8796e80dd192a3bcc1d521939e5 (patch) | |
tree | a961a9157981b097731b6401655e1a7b3b717110 /fs/btrfs | |
parent | 0b4699dcb65c2cff793210b07f40b98c2d423a43 (diff) |
Btrfs: cleanup the same name in end_bio_extent_readpage
We've defined a 'offset' out of bio_for_each_segment_all.
This is just a clean rename, no function changes.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/extent_io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 816e80e678bd..d70feb545066 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -2543,12 +2543,12 @@ readpage_ok: | |||
2543 | if (likely(uptodate)) { | 2543 | if (likely(uptodate)) { |
2544 | loff_t i_size = i_size_read(inode); | 2544 | loff_t i_size = i_size_read(inode); |
2545 | pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; | 2545 | pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; |
2546 | unsigned offset; | 2546 | unsigned off; |
2547 | 2547 | ||
2548 | /* Zero out the end if this page straddles i_size */ | 2548 | /* Zero out the end if this page straddles i_size */ |
2549 | offset = i_size & (PAGE_CACHE_SIZE-1); | 2549 | off = i_size & (PAGE_CACHE_SIZE-1); |
2550 | if (page->index == end_index && offset) | 2550 | if (page->index == end_index && off) |
2551 | zero_user_segment(page, offset, PAGE_CACHE_SIZE); | 2551 | zero_user_segment(page, off, PAGE_CACHE_SIZE); |
2552 | SetPageUptodate(page); | 2552 | SetPageUptodate(page); |
2553 | } else { | 2553 | } else { |
2554 | ClearPageUptodate(page); | 2554 | ClearPageUptodate(page); |