Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77870
b: refs/heads/master
c: afc7cbc
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Sato authored and Theodore Ts'o committed Jan 29, 2008
1 parent 9ce823c commit 07c45f3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 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: 6b11d8179d1c6e560edc02c40a53b65fde83bf3f
refs/heads/master: afc7cbca5bfd556c3e12d3acefbee5ab0cbd4670
5 changes: 5 additions & 0 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,11 @@ static int ext4_fill_super (struct super_block *sb, void *data, int silent)
goto out_fail;
}

if (!sb_set_blocksize(sb, blocksize)) {
printk(KERN_ERR "EXT4-fs: bad blocksize %d.\n", blocksize);
goto out_fail;
}

/*
* The ext4 superblock will not be buffer aligned for other than 1kB
* block sizes. We need to calculate the offset from buffer start.
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/cluster/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int o2cb_sys_init(void)
{
int ret;

o2cb_kset = kset_create_and_add("o2cb", NULL, NULL);
o2cb_kset = kset_create_and_add("o2cb", NULL, fs_kobj);
if (!o2cb_kset)
return -ENOMEM;

Expand Down
4 changes: 2 additions & 2 deletions trunk/include/linux/ext4_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
* Macro-instructions used to manage several block sizes
*/
#define EXT4_MIN_BLOCK_SIZE 1024
#define EXT4_MAX_BLOCK_SIZE 4096
#define EXT4_MIN_BLOCK_LOG_SIZE 10
#define EXT4_MAX_BLOCK_SIZE 65536
#define EXT4_MIN_BLOCK_LOG_SIZE 10
#ifdef __KERNEL__
# define EXT4_BLOCK_SIZE(s) ((s)->s_blocksize)
#else
Expand Down

0 comments on commit 07c45f3

Please sign in to comment.