summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-06-22 20:16:25 +0200
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-06-22 20:16:25 +0200
commit54aa1f4dfdacd60a19c4471220b24e581be6f774 (patch)
tree1462277822cc63c00ad31b522457363a5c6be6ab /fs/btrfs/super.c
parentBtrfs: Switch to libcrc32c to avoid problems with cryptomgr on highmem machines (diff)
downloadlinux-54aa1f4dfdacd60a19c4471220b24e581be6f774.tar.xz
linux-54aa1f4dfdacd60a19c4471220b24e581be6f774.zip
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/super.c')
-rw-r--r--fs/btrfs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index ef8ad18b275c..c11ecf500202 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -125,9 +125,8 @@ static int btrfs_sync_fs(struct super_block *sb, int wait)
trans = btrfs_start_transaction(root, 1);
ret = btrfs_commit_transaction(trans, root);
sb->s_dirt = 0;
- BUG_ON(ret);
mutex_unlock(&root->fs_info->fs_mutex);
- return 0;
+ return ret;
}
static void btrfs_write_super(struct super_block *sb)