projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf67582
)
fix found_type decrement in btrfs_truncate_in_trans
author
Yan
<yanzheng@21cn.com>
Mon, 17 Sep 2007 15:08:38 +0000
(11:08 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:56 +0000
(11:03 -0400)
found_type has already been decreased by codes above the change, I
think decrease it by one again doesn't make sense.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index bd00df33fb3f17f553678b62cc8beabd6ff695cc..211ca32c65c59166fa952fee1b0df27ffa0045aa 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-581,7
+581,7
@@
static int btrfs_truncate_in_trans(struct btrfs_trans_handle *trans,
} else {
break;
}
- btrfs_set_key_type(&key, found_type
- 1
);
+ btrfs_set_key_type(&key, found_type);
continue;
}
if (btrfs_disk_key_offset(found_key) >= inode->i_size)