commit | 5d4fb734b4cb89a3902d6de309af0f6f3e63fe73 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Fri Dec 21 16:27:23 2007 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:03:58 2008 -0400 |
tree | 0ceeb3fb26c6d8b49c0ba902f24e94e37f58f52c | |
parent | 1832a6d5ee3b1af61001cadba9e10da9e91af4a4 [diff] [blame] |
Btrfs: Fix an off by one in the extent_map prepare write code Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index a9f5d6d..5f5b7b8 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c
@@ -1956,7 +1956,7 @@ mutex_lock(&root->fs_info->fs_mutex); err = btrfs_check_free_space(root, PAGE_CACHE_SIZE, 0); - mutex_lock(&root->fs_info->fs_mutex); + mutex_unlock(&root->fs_info->fs_mutex); if (err) return -ENOSPC;