aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.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/super.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/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)
125 trans = btrfs_start_transaction(root, 1); 125 trans = btrfs_start_transaction(root, 1);
126 ret = btrfs_commit_transaction(trans, root); 126 ret = btrfs_commit_transaction(trans, root);
127 sb->s_dirt = 0; 127 sb->s_dirt = 0;
128 BUG_ON(ret);
129 mutex_unlock(&root->fs_info->fs_mutex); 128 mutex_unlock(&root->fs_info->fs_mutex);
130 return 0; 129 return ret;
131} 130}
132 131
133static void btrfs_write_super(struct super_block *sb) 132static void btrfs_write_super(struct super_block *sb)