aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-06-22 14:16:25 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-06-22 14:16:25 -0400
commit54aa1f4dfdacd60a19c4471220b24e581be6f774 (patch)
tree1462277822cc63c00ad31b522457363a5c6be6ab /fs/btrfs/disk-io.c
parent11bd143fc8243cf48c934dc1c4479a5aacf58ce3 (diff)
Btrfs: Audit callers and return codes to make sure -ENOSPC gets up the stack
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 3712e946f9c8..865a284aa06c 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -580,7 +580,7 @@ int close_ctree(struct btrfs_root *root)
580 btrfs_transaction_flush_work(root); 580 btrfs_transaction_flush_work(root);
581 mutex_lock(&fs_info->fs_mutex); 581 mutex_lock(&fs_info->fs_mutex);
582 trans = btrfs_start_transaction(root, 1); 582 trans = btrfs_start_transaction(root, 1);
583 btrfs_commit_transaction(trans, root); 583 ret = btrfs_commit_transaction(trans, root);
584 /* run commit again to drop the original snapshot */ 584 /* run commit again to drop the original snapshot */
585 trans = btrfs_start_transaction(root, 1); 585 trans = btrfs_start_transaction(root, 1);
586 btrfs_commit_transaction(trans, root); 586 btrfs_commit_transaction(trans, root);