Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358989
b: refs/heads/master
c: 5c9b469
h: refs/heads/master
i:
  358987: 2dd9b2f
v: v3
  • Loading branch information
majianpeng authored and Jaegeuk Kim committed Feb 11, 2013
1 parent 8cffaaf commit 7102ec4
Show file tree
Hide file tree
Showing 2 changed files with 11 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: f83759e28372e593879f4dd20eb6c5ba6c4f393a
refs/heads/master: 5c9b469295fb6b10d98923eab5e79c4edb80ed20
11 changes: 10 additions & 1 deletion trunk/fs/f2fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,23 @@ static int sanity_check_raw_super(struct super_block *sb,
return 1;
}

/* Currently, support only 4KB page cache size */
if (F2FS_BLKSIZE != PAGE_CACHE_SIZE) {
f2fs_msg(sb, KERN_INFO,
"Invalid page_cache_size (%u), supports only 4KB\n",
PAGE_CACHE_SIZE);
return 1;
}

/* Currently, support only 4KB block size */
blocksize = 1 << le32_to_cpu(raw_super->log_blocksize);
if (blocksize != PAGE_CACHE_SIZE) {
if (blocksize != F2FS_BLKSIZE) {
f2fs_msg(sb, KERN_INFO,
"Invalid blocksize (%u), supports only 4KB\n",
blocksize);
return 1;
}

if (le32_to_cpu(raw_super->log_sectorsize) !=
F2FS_LOG_SECTOR_SIZE) {
f2fs_msg(sb, KERN_INFO, "Invalid log sectorsize");
Expand Down

0 comments on commit 7102ec4

Please sign in to comment.