projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc8779
)
Btrfs: fix uninit variable in the delayed inode code
author
Chris Mason
<chris.mason@oracle.com>
Fri, 3 Jun 2011 05:13:45 +0000
(
01:13
-0400)
committer
Chris Mason
<chris.mason@oracle.com>
Sat, 4 Jun 2011 12:03:43 +0000
(08:03 -0400)
The nitems counter needs to start at zero
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/delayed-inode.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/delayed-inode.c
b/fs/btrfs/delayed-inode.c
index b46d94d1dea8a58bead0f16440ebb04b3953672e..c61c32cf0f71a1ce0929f99364996ba1f0ac885e 100644
(file)
--- a/
fs/btrfs/delayed-inode.c
+++ b/
fs/btrfs/delayed-inode.c
@@
-678,6
+678,7
@@
static int btrfs_batch_insert_items(struct btrfs_trans_handle *trans,
INIT_LIST_HEAD(&head);
next = item;
+ nitems = 0;
/*
* count the number of the continuous items that we can insert in batch