Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23435
b: refs/heads/master
c: 38885bd
h: refs/heads/master
i:
  23433: 02c9a46
  23431: 06868df
v: v3
  • Loading branch information
Coywolf Qi Hunt authored and Linus Torvalds committed Mar 24, 2006
1 parent ec67aff commit 4f9383c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: a94ddf3ab866df9c187c9d8b3870b7ec38c6f7ad
refs/heads/master: 38885bd4c2a4b59ddb22271d3e6c621859c76f02
6 changes: 1 addition & 5 deletions trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,12 @@ EXPORT_SYMBOL(set_blocksize);

int sb_set_blocksize(struct super_block *sb, int size)
{
int bits = 9; /* 2^9 = 512 */

if (set_blocksize(sb->s_bdev, size))
return 0;
/* If we get here, we know size is power of two
* and it's value is between 512 and PAGE_SIZE */
sb->s_blocksize = size;
for (size >>= 10; size; size >>= 1)
++bits;
sb->s_blocksize_bits = bits;
sb->s_blocksize_bits = blksize_bits(size);
return sb->s_blocksize;
}

Expand Down

0 comments on commit 4f9383c

Please sign in to comment.