Displaying 2 results from an estimated 2 matches for "drop_on_err".
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...btrfs_btree_balance_dirty(root, nr);
btrfs_throttle(root);
return err;
+}
+
+static struct inode *btrfs_create_orphan_dir(struct btrfs_root *root)
+{
+ struct inode *inode = NULL;
+ struct inode *dir = root->inode;
+ struct btrfs_trans_handle *trans;
+ struct btrfs_key key;
+ int err = 0, drop_on_err = 0;
+ u64 objectid = 0;
+ unsigned long nr = 1;
+
+ mutex_lock(&root->fs_info->fs_mutex);
+ err = btrfs_check_free_space(root, 1, 0);
+ if (err)
+ goto out_unlock;
+
+ trans = btrfs_start_transaction(root, 1);
+ btrfs_set_trans_block_group(trans, dir);
+
+ if (IS_ERR(trans)) {
+ err =...
2011 May 11
8
[PATCH 1/4] Btrfs: map the node block when looking for readahead targets
If we have particularly full nodes, we could call btrfs_node_blockptr up to 32
times, which is 32 pairs of kmap/kunmap, which _sucks_. So go ahead and map the
extent buffer while we look for readahead targets. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
---
fs/btrfs/ctree.c | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git