Commit 57a4bfc4 authored by Ryusuke Konishi's avatar Ryusuke Konishi

nilfs2: get rid of ns_free_segments_count

This counter is unused.
Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
parent 4762077c
...@@ -630,9 +630,6 @@ int init_nilfs(struct the_nilfs *nilfs, struct nilfs_sb_info *sbi, char *data) ...@@ -630,9 +630,6 @@ int init_nilfs(struct the_nilfs *nilfs, struct nilfs_sb_info *sbi, char *data)
err = -EINVAL; err = -EINVAL;
goto failed_sbh; goto failed_sbh;
} }
/* Dummy values */
nilfs->ns_free_segments_count =
nilfs->ns_nsegments - (nilfs->ns_segnum + 1);
/* Initialize gcinode cache */ /* Initialize gcinode cache */
err = nilfs_init_gccache(nilfs); err = nilfs_init_gccache(nilfs);
......
...@@ -73,7 +73,6 @@ enum { ...@@ -73,7 +73,6 @@ enum {
* @ns_last_seq: sequence value of the latest segment * @ns_last_seq: sequence value of the latest segment
* @ns_last_cno: checkpoint number of the latest segment * @ns_last_cno: checkpoint number of the latest segment
* @ns_prot_seq: least sequence number of segments which must not be reclaimed * @ns_prot_seq: least sequence number of segments which must not be reclaimed
* @ns_free_segments_count: counter of free segments
* @ns_segctor_sem: segment constructor semaphore * @ns_segctor_sem: segment constructor semaphore
* @ns_dat: DAT file inode * @ns_dat: DAT file inode
* @ns_cpfile: checkpoint file inode * @ns_cpfile: checkpoint file inode
...@@ -150,7 +149,6 @@ struct the_nilfs { ...@@ -150,7 +149,6 @@ struct the_nilfs {
u64 ns_last_seq; u64 ns_last_seq;
__u64 ns_last_cno; __u64 ns_last_cno;
u64 ns_prot_seq; u64 ns_prot_seq;
unsigned long ns_free_segments_count;
struct rw_semaphore ns_segctor_sem; struct rw_semaphore ns_segctor_sem;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment