Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284472
b: refs/heads/master
c: 3d4a1c8
h: refs/heads/master
v: v3
  • Loading branch information
Phillip Lougher committed Jan 3, 2012
1 parent 16d2e7b commit c12d05e
Show file tree
Hide file tree
Showing 2 changed files with 3 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: cc37f75a9ffbbfcb1c3297534f293c8284e3c5a6
refs/heads/master: 3d4a1c80c4eb97187b3a61b3bfa8c804327f7a45
4 changes: 2 additions & 2 deletions trunk/fs/squashfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ int squashfs_read_inode(struct inode *inode, long long ino)
inode->i_op = &squashfs_inode_ops;
inode->i_fop = &generic_ro_fops;
inode->i_mode |= S_IFREG;
inode->i_blocks = ((inode->i_size -
le64_to_cpu(sqsh_ino->sparse) - 1) >> 9) + 1;
inode->i_blocks = (inode->i_size -
le64_to_cpu(sqsh_ino->sparse) + 511) >> 9;

squashfs_i(inode)->fragment_block = frag_blk;
squashfs_i(inode)->fragment_size = frag_size;
Expand Down

0 comments on commit c12d05e

Please sign in to comment.