summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file-item.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-04-29 16:05:57 +0200
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 21:55:22 +0200
commit634554dc0acfc8753c05e432b2fdb34b0be89c78 (patch)
tree824cb5efa227ea42c325b2138e5b5c9dd0918b97 /fs/btrfs/file-item.c
parentBtrfs: remove almost all of the BUG()'s from tree-log.c (diff)
downloadlinux-634554dc0acfc8753c05e432b2fdb34b0be89c78.tar.xz
linux-634554dc0acfc8753c05e432b2fdb34b0be89c78.zip
Btrfs: deal with errors in write_dev_supers
If you try to mount -o loop a restored file system it will panic if the file ends up being smaller than the original disk. This is because we go to try and get a block for a super that may be past the EOF which makes __getblk return NULL for a buffer head when we aren't expecting it to. Fix this by dealing with this case and just jacking up the errors count. With this patch we no longer panic when mounting a restored file system loopback. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
0 files changed, 0 insertions, 0 deletions