aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/segment.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-04-06 22:01:51 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-07 11:31:18 -0400
commit1088dcf4c3a0a27fdad5214781d5084b11405238 (patch)
tree4d08f45ff4867d629e5ad4e94e0362e897ffa1e1 /fs/nilfs2/segment.c
parent76068c4ff1cc03d9d24d17fd9e6a1475bc2f6730 (diff)
nilfs2: remove timedwait ioctl command
This removes NILFS_IOCTL_TIMEDWAIT command from ioctl interface along with the related flags and wait queue. The command is terrible because it just sleeps in the ioctl. I prefer to avoid this by devising means of event polling in userland program. By reconsidering the userland GC daemon, I found this is possible without changing behaviour of the daemon and sacrificing efficiency. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/segment.c')
-rw-r--r--fs/nilfs2/segment.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c
index 6d66c5cb7b51..5db12d774a03 100644
--- a/fs/nilfs2/segment.c
+++ b/fs/nilfs2/segment.c
@@ -2114,11 +2114,8 @@ static void nilfs_segctor_complete_write(struct nilfs_sc_info *sci)
2114 nilfs_drop_collected_inodes(&sci->sc_gc_inodes); 2114 nilfs_drop_collected_inodes(&sci->sc_gc_inodes);
2115 if (update_sr) 2115 if (update_sr)
2116 nilfs_commit_gcdat_inode(nilfs); 2116 nilfs_commit_gcdat_inode(nilfs);
2117 } else { 2117 } else
2118 nilfs->ns_nongc_ctime = sci->sc_seg_ctime; 2118 nilfs->ns_nongc_ctime = sci->sc_seg_ctime;
2119 set_nilfs_cond_nongc_write(nilfs);
2120 wake_up(&nilfs->ns_cleanerd_wq);
2121 }
2122 2119
2123 sci->sc_nblk_inc += sci->sc_nblk_this_inc; 2120 sci->sc_nblk_inc += sci->sc_nblk_this_inc;
2124 2121