Btrfs: add and improve comments
[linux-2.6-block.git] / fs / btrfs / tree-defrag.c
index b3bb5bbad76e29affb77919e6aaa7b002c331bd3..6f57d0889b1ed8e63f1f39178f005d4c65b8d0a3 100644 (file)
 #include "transaction.h"
 #include "locking.h"
 
+/* defrag all the leaves in a given btree.  If cache_only == 1, don't read things
+ * from disk, otherwise read all the leaves and try to get key order to
+ * better reflect disk order
+ */
 int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
                        struct btrfs_root *root, int cache_only)
 {