All of lore.kernel.org
 help / color / mirror / Atom feed
* kdave/for-next commit 26112f7f472
@ 2016-07-08  4:24 Jeff Mahoney
  2016-07-08 11:19 ` Holger Hoffstätte
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Mahoney @ 2016-07-08  4:24 UTC (permalink / raw)
  To: David Sterba, Josef Bacik; +Cc: linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 674 bytes --]

Hi Dave -

This commit introduces a bug.  I ran across it when running xfstests
against my own integrated branch.

The problem is that btrfs_calc_reclaim_metadata_size didn't used to be
called from recovery, so it was safe to use fs_info->fs_root.  With
commit 7c83c6a09 (Btrfs: don't bother kicking async if there's nothing
to reclaim) we do call it from recovery context and fs_info->fs_root is
NULL.

The fix is to just not switch btrfs_calc_reclaim_metadata_size to take
an fs_info.  All the other call sites were using fs_info->fs_root
anyway, so it's not like we're pinning a root somewhere just for this call.

-Jeff

-- 
Jeff Mahoney
SUSE Labs


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 881 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-08 13:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-08  4:24 kdave/for-next commit 26112f7f472 Jeff Mahoney
2016-07-08 11:19 ` Holger Hoffstätte
2016-07-08 11:55   ` Jeff Mahoney
2016-07-08 12:31     ` Holger Hoffstätte
2016-07-08 13:37     ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.