diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-19 13:37:44 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-19 13:37:44 -0400 |
commit | 236454dfffb64a95ee01c50a215153f5de61c475 (patch) | |
tree | 605a8256dc83916c4daac5e709117cdd2fab3d64 /fs/btrfs/disk-io.c | |
parent | a429e51371eee3c989160c003ee40bc3947c6a76 (diff) |
Btrfs: many file_write fixes, inline data
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index a2a3f529cad..11e17a2f736 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -108,6 +108,12 @@ int btrfs_map_bh_to_logical(struct btrfs_root *root, struct buffer_head *bh, | |||
108 | 108 | ||
109 | int ret; | 109 | int ret; |
110 | 110 | ||
111 | if (logical == 0) { | ||
112 | bh->b_bdev = NULL; | ||
113 | bh->b_blocknr = 0; | ||
114 | set_buffer_mapped(bh); | ||
115 | return 0; | ||
116 | } | ||
111 | root = root->fs_info->dev_root; | 117 | root = root->fs_info->dev_root; |
112 | ret = radix_tree_gang_lookup(&root->fs_info->dev_radix, | 118 | ret = radix_tree_gang_lookup(&root->fs_info->dev_radix, |
113 | (void **)lookup, | 119 | (void **)lookup, |