projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4a6c73
)
btrfs-progs: convert: remove redundant check
author
David Sterba
<dsterba@suse.com>
Tue, 23 Aug 2016 17:33:05 +0000
(19:33 +0200)
committer
David Sterba
<dsterba@suse.com>
Wed, 24 Aug 2016 12:37:36 +0000
(14:37 +0200)
The check for sectorsize is properly done in do_convert, remove the
BUG_ON.
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-convert.c
patch
|
blob
|
history
diff --git
a/btrfs-convert.c
b/btrfs-convert.c
index
d2ff517
..
cf2701a
100644
(file)
--- a/
btrfs-convert.c
+++ b/
btrfs-convert.c
@@
-1359,7
+1359,6
@@
static int migrate_super_block(int fd, u64 old_bytenr, u32 sectorsize)
u32 len;
u32 bytenr;
- BUG_ON(sectorsize < sizeof(*super));
buf = malloc(sizeof(*buf) + sectorsize);
if (!buf)
return -ENOMEM;