Displaying 1 result from an estimated 1 matches for "btrfs_find_defrag_inode".
2012 May 24
2
[PATCH] Btrfs: fix the same inode id problem when doing auto defragment
...are_inode_defrag(defrag, entry) > 0)
 			p = &parent->rb_right;
 		else {
 			/* if we''re reinserting an entry for
@@ -159,28 +174,33 @@ int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans,
 /*
  * must be called with the defrag_inodes lock held
  */
-struct inode_defrag *btrfs_find_defrag_inode(struct btrfs_fs_info *info, u64 ino,
+struct inode_defrag *btrfs_find_defrag_inode(struct btrfs_fs_info *info,
+					     u64 root, u64 ino,
 					     struct rb_node **next)
 {
 	struct inode_defrag *entry = NULL;
+	struct inode_defrag tmp;
 	struct rb_node *p;
 	struct rb_node *parent = NULL;
 
+...