diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-12-21 16:27:23 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:58 -0400 |
commit | 5d4fb734b4cb89a3902d6de309af0f6f3e63fe73 (patch) | |
tree | 0ceeb3fb26c6d8b49c0ba902f24e94e37f58f52c /fs/btrfs/inode.c | |
parent | 1832a6d5ee3b1af61001cadba9e10da9e91af4a4 (diff) |
Btrfs: Fix an off by one in the extent_map prepare write code
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index a9f5d6d417f0..5f5b7b89b144 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -1956,7 +1956,7 @@ static int btrfs_prepare_write(struct file *file, struct page *page, | |||
1956 | 1956 | ||
1957 | mutex_lock(&root->fs_info->fs_mutex); | 1957 | mutex_lock(&root->fs_info->fs_mutex); |
1958 | err = btrfs_check_free_space(root, PAGE_CACHE_SIZE, 0); | 1958 | err = btrfs_check_free_space(root, PAGE_CACHE_SIZE, 0); |
1959 | mutex_lock(&root->fs_info->fs_mutex); | 1959 | mutex_unlock(&root->fs_info->fs_mutex); |
1960 | if (err) | 1960 | if (err) |
1961 | return -ENOSPC; | 1961 | return -ENOSPC; |
1962 | 1962 | ||