Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232738
b: refs/heads/master
c: d54cdc8
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik authored and Linus Torvalds committed Feb 3, 2011
1 parent 544511d commit 483691f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3cd90ea42f2c15f928b70ed66f6d8ed0a8e7aadd
refs/heads/master: d54cdc8ca7aabc69e145a62155855db42b04ed0b
7 changes: 7 additions & 0 deletions trunk/fs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,13 @@ int __generic_block_fiemap(struct inode *inode,
len = isize;
}

/*
* Some filesystems can't deal with being asked to map less than
* blocksize, so make sure our len is at least block length.
*/
if (logical_to_blk(inode, len) == 0)
len = blk_to_logical(inode, 1);

start_blk = logical_to_blk(inode, start);
last_blk = logical_to_blk(inode, start + len - 1);

Expand Down

0 comments on commit 483691f

Please sign in to comment.