summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasad Joshi <prasadjoshi124@gmail.com>2010-05-04 22:13:59 +0200
committerJoern Engel <joern@logfs.org>2010-05-04 22:17:08 +0200
commit24797535e18ae219be1fc2632959327075bef5da (patch)
treef55288032e5c5e6c02450ca75dbbe8b8bf030a71
parent05ebad852901cf9127a743df6ea10c0e8b1590c3 (diff)
downloadlinux-stable-24797535e18ae219be1fc2632959327075bef5da.tar.gz
linux-stable-24797535e18ae219be1fc2632959327075bef5da.tar.bz2
linux-stable-24797535e18ae219be1fc2632959327075bef5da.zip
logfs: initialize li->li_refcount
li_refcount was not re-initialized in function logfs_init_inode(), small patch that will fix the problem Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com> Signed-off-by: Joern Engel <joern@logfs.org>
-rw-r--r--fs/logfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/logfs/inode.c b/fs/logfs/inode.c
index 45bf86f1595a..af78b6e82895 100644
--- a/fs/logfs/inode.c
+++ b/fs/logfs/inode.c
@@ -193,6 +193,7 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode)
inode->i_ctime = CURRENT_TIME;
inode->i_mtime = CURRENT_TIME;
inode->i_nlink = 1;
+ li->li_refcount = 1;
INIT_LIST_HEAD(&li->li_freeing_list);
for (i = 0; i < LOGFS_EMBEDDED_FIELDS; i++)