]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - fs/logfs/inode.c
logfs: initialize li->li_refcount
[~shefty/rdma-dev.git] / fs / logfs / inode.c
index 45bf86f1595aff49b71c553e12cff5e449031e48..af78b6e82895e33260210a38957214649e5e02d2 100644 (file)
@@ -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++)