Skip to contentSkip to conversation

xfs: clean up xfs_alloc_ag_vextent_exact

PATCH New Christoph Hellwig 1 participant 1 message Dec 10, 2010 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: clean up xfs_alloc_ag_vextent_exact

Use a goto label to consolidate all block not found cases, and add a tracepoint for them. Also clean up a few whitespace issues.

Based on an earlier patch from Dave Chinner.

fs/xfs/linux-2.6/xfs_trace.h +1 -0
Index: linux-2.6/fs/xfs/linux-2.6/xfs_trace.h
===================================================================
@@ -1421,6 +1421,7 @@ DEFINE_EVENT(xfs_alloc_class, name, \
 	TP_PROTO(struct xfs_alloc_arg *args), \
 	TP_ARGS(args))
 DEFINE_ALLOC_EVENT(xfs_alloc_exact_done);
+DEFINE_ALLOC_EVENT(xfs_alloc_exact_notfound);
 DEFINE_ALLOC_EVENT(xfs_alloc_exact_error);
 DEFINE_ALLOC_EVENT(xfs_alloc_near_nominleft);
 DEFINE_ALLOC_EVENT(xfs_alloc_near_first);
fs/xfs/xfs_alloc.c +32 -26

109 lines not on this page · raw message

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs