projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
125bac0
)
btrfs: use BTRFS_SUPER_INFO_SIZE macro at btrfs_read_dev_super()
author
Anand Jain
<
[email protected]
>
Thu, 25 Jul 2013 17:29:35 +0000
(
01:29
+0800)
committer
Chris Mason
<
[email protected]
>
Sun, 1 Sep 2013 12:04:37 +0000
(08:04 -0400)
Signed-off-by: Anand Jain <
[email protected]
>
Signed-off-by: Josef Bacik <
[email protected]
>
Signed-off-by: Chris Mason <
[email protected]
>
fs/btrfs/disk-io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index 8e2eee67c3a8dc70c5ce761bb2de0880204ab313..13564354c92740b88116bab87c267c947e91ade1 100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-2984,9
+2984,11
@@
struct buffer_head *btrfs_read_dev_super(struct block_device *bdev)
*/
for (i = 0; i < 1; i++) {
bytenr = btrfs_sb_offset(i);
- if (bytenr + 4096 >= i_size_read(bdev->bd_inode))
+ if (bytenr + BTRFS_SUPER_INFO_SIZE >=
+ i_size_read(bdev->bd_inode))
break;
- bh = __bread(bdev, bytenr / 4096, 4096);
+ bh = __bread(bdev, bytenr / 4096,
+ BTRFS_SUPER_INFO_SIZE);
if (!bh)
continue;