Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] cleanups when walking backref tree
@ 2013-04-10 11:22 Wang Shilong
  2013-04-10 11:22 ` [PATCH 1/2] Btrfs: remove some BUG_ONs() " Wang Shilong
  2013-04-10 11:22 ` [PATCH 2/2] Btrfs: make some functions return type be void in backref.c Wang Shilong
  0 siblings, 2 replies; 6+ messages in thread
From: Wang Shilong @ 2013-04-10 11:22 UTC (permalink / raw)
  To: linux-btrfs; +Cc: wangsl-fnst, list.btrfs

From: Wang Shilong <wangsl-fnst@cn.fujitsu.com>

The first patch removes some BUG_ONs() when walking backref tree.
These BUG_ON()s can only be triggered because of ENOMEM, and the caller
has checked the return value about it. So we just return directly rather
than trigger BUG_ON() when out of memory happens.

The second patch just makes some functions' return value be void, Since
these functions always return 0.

Wang Shilong (2):
  Btrfs: remove some BUG_ONs() when walking backref tree
  Btrfs: make some functions return type be void in backref.c

 fs/btrfs/backref.c |   28 ++++++++++++----------------
 1 files changed, 12 insertions(+), 16 deletions(-)

-- 
1.7.7.6


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

end of thread, other threads:[~2013-04-11  7:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 11:22 [PATCH 0/2] cleanups when walking backref tree Wang Shilong
2013-04-10 11:22 ` [PATCH 1/2] Btrfs: remove some BUG_ONs() " Wang Shilong
2013-04-10 14:52   ` David Sterba
2013-04-10 11:22 ` [PATCH 2/2] Btrfs: make some functions return type be void in backref.c Wang Shilong
2013-04-10 15:01   ` David Sterba
2013-04-11  7:14     ` Wang Shilong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox