Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275857
b: refs/heads/master
c: 4d479cf
h: refs/heads/master
i:
  275855: fa53380
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Nov 20, 2011
1 parent c53dcfc commit 003bb2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: f7d61dcd6873c49bcc42be2caa2af1c2511aa915
refs/heads/master: 4d479cf010d56ec9c54f3099992d039918f1296b
5 changes: 4 additions & 1 deletion trunk/fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3366,6 +3366,9 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
return -ENOMEM;
path->leave_spinning = 1;

start = ALIGN(start, BTRFS_I(inode)->root->sectorsize);
len = ALIGN(len, BTRFS_I(inode)->root->sectorsize);

/*
* lookup the last file extent. We're not using i_size here
* because there might be preallocation past i_size
Expand Down Expand Up @@ -3413,7 +3416,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
lock_extent_bits(&BTRFS_I(inode)->io_tree, start, start + len, 0,
&cached_state, GFP_NOFS);

em = get_extent_skip_holes(inode, off, last_for_get_extent,
em = get_extent_skip_holes(inode, start, last_for_get_extent,
get_extent);
if (!em)
goto out;
Expand Down

0 comments on commit 003bb2c

Please sign in to comment.