• Home
  • Raw
  • Download

Lines Matching refs:nilfs

55 static int nilfs_ioctl_wrap_copy(struct the_nilfs *nilfs,  in nilfs_ioctl_wrap_copy()  argument
100 nr = dofunc(nilfs, &pos, argv->v_flags, buf, argv->v_size, in nilfs_ioctl_wrap_copy()
219 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_change_cpmode() local
235 mutex_lock(&nilfs->ns_snapshot_mount_mutex); in nilfs_ioctl_change_cpmode()
239 nilfs->ns_cpfile, cpmode.cm_cno, cpmode.cm_mode); in nilfs_ioctl_change_cpmode()
245 mutex_unlock(&nilfs->ns_snapshot_mount_mutex); in nilfs_ioctl_change_cpmode()
274 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_delete_checkpoint() local
291 ret = nilfs_cpfile_delete_checkpoint(nilfs->ns_cpfile, cno); in nilfs_ioctl_delete_checkpoint()
317 nilfs_ioctl_do_get_cpinfo(struct the_nilfs *nilfs, __u64 *posp, int flags, in nilfs_ioctl_do_get_cpinfo() argument
322 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_cpinfo()
323 ret = nilfs_cpfile_get_cpinfo(nilfs->ns_cpfile, posp, flags, buf, in nilfs_ioctl_do_get_cpinfo()
325 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_cpinfo()
353 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_get_cpstat() local
357 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_get_cpstat()
358 ret = nilfs_cpfile_get_stat(nilfs->ns_cpfile, &cpstat); in nilfs_ioctl_get_cpstat()
359 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_get_cpstat()
384 nilfs_ioctl_do_get_suinfo(struct the_nilfs *nilfs, __u64 *posp, int flags, in nilfs_ioctl_do_get_suinfo() argument
389 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_suinfo()
390 ret = nilfs_sufile_get_suinfo(nilfs->ns_sufile, *posp, buf, size, in nilfs_ioctl_do_get_suinfo()
392 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_suinfo()
420 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_get_sustat() local
424 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_get_sustat()
425 ret = nilfs_sufile_get_stat(nilfs->ns_sufile, &sustat); in nilfs_ioctl_get_sustat()
426 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_get_sustat()
451 nilfs_ioctl_do_get_vinfo(struct the_nilfs *nilfs, __u64 *posp, int flags, in nilfs_ioctl_do_get_vinfo() argument
456 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_vinfo()
457 ret = nilfs_dat_get_vinfo(nilfs->ns_dat, buf, size, nmembs); in nilfs_ioctl_do_get_vinfo()
458 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_vinfo()
478 nilfs_ioctl_do_get_bdescs(struct the_nilfs *nilfs, __u64 *posp, int flags, in nilfs_ioctl_do_get_bdescs() argument
481 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; in nilfs_ioctl_do_get_bdescs()
485 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_bdescs()
493 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_bdescs()
499 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_bdescs()
529 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_get_bdescs() local
539 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs()
629 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_ioctl_move_blocks() local
654 &nilfs->ns_gc_inodes); in nilfs_ioctl_move_blocks()
709 static int nilfs_ioctl_delete_checkpoints(struct the_nilfs *nilfs, in nilfs_ioctl_delete_checkpoints() argument
713 struct inode *cpfile = nilfs->ns_cpfile; in nilfs_ioctl_delete_checkpoints()
744 static int nilfs_ioctl_free_vblocknrs(struct the_nilfs *nilfs, in nilfs_ioctl_free_vblocknrs() argument
750 ret = nilfs_dat_freev(nilfs->ns_dat, buf, nmembs); in nilfs_ioctl_free_vblocknrs()
773 static int nilfs_ioctl_mark_blocks_dirty(struct the_nilfs *nilfs, in nilfs_ioctl_mark_blocks_dirty() argument
777 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; in nilfs_ioctl_mark_blocks_dirty()
797 ret = nilfs_mdt_get_block(nilfs->ns_dat, in nilfs_ioctl_mark_blocks_dirty()
805 nilfs_mdt_mark_dirty(nilfs->ns_dat); in nilfs_ioctl_mark_blocks_dirty()
819 int nilfs_ioctl_prepare_clean_segments(struct the_nilfs *nilfs, in nilfs_ioctl_prepare_clean_segments() argument
825 ret = nilfs_ioctl_delete_checkpoints(nilfs, &argv[1], kbufs[1]); in nilfs_ioctl_prepare_clean_segments()
834 ret = nilfs_ioctl_free_vblocknrs(nilfs, &argv[2], kbufs[2]); in nilfs_ioctl_prepare_clean_segments()
843 ret = nilfs_ioctl_mark_blocks_dirty(nilfs, &argv[3], kbufs[3]); in nilfs_ioctl_prepare_clean_segments()
854 nilfs_msg(nilfs->ns_sb, KERN_ERR, "error %d preparing GC: %s", ret, in nilfs_ioctl_prepare_clean_segments()
886 struct the_nilfs *nilfs; in nilfs_ioctl_clean_segments() local
919 nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_clean_segments()
926 if (argv[n].v_nmembs > nsegs * nilfs->ns_blocks_per_segment) in nilfs_ioctl_clean_segments()
957 if (test_and_set_bit(THE_NILFS_GC_RUNNING, &nilfs->ns_flags)) { in nilfs_ioctl_clean_segments()
968 if (nilfs_sb_need_update(nilfs)) in nilfs_ioctl_clean_segments()
969 set_nilfs_discontinued(nilfs); in nilfs_ioctl_clean_segments()
973 nilfs_remove_all_gcinodes(nilfs); in nilfs_ioctl_clean_segments()
974 clear_nilfs_gc_running(nilfs); in nilfs_ioctl_clean_segments()
1017 struct the_nilfs *nilfs; in nilfs_ioctl_sync() local
1023 nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_sync()
1024 ret = nilfs_flush_device(nilfs); in nilfs_ioctl_sync()
1029 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_sync()
1030 cno = nilfs->ns_cno - 1; in nilfs_ioctl_sync()
1031 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_sync()
1084 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_trim_fs() local
1085 struct request_queue *q = bdev_get_queue(nilfs->ns_bdev); in nilfs_ioctl_trim_fs()
1100 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_trim_fs()
1101 ret = nilfs_sufile_trim_fs(nilfs->ns_sufile, &range); in nilfs_ioctl_trim_fs()
1102 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_trim_fs()
1126 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_set_alloc_range() local
1143 segbytes = nilfs->ns_blocks_per_segment * nilfs->ns_blocksize; in nilfs_ioctl_set_alloc_range()
1151 ret = nilfs_sufile_set_alloc_range(nilfs->ns_sufile, minseg, maxseg); in nilfs_ioctl_set_alloc_range()
1186 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_get_info() local
1196 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info()
1232 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_set_suinfo() local
1255 if (argv.v_nmembs > nilfs->ns_nsegments) in nilfs_ioctl_set_suinfo()
1280 ret = nilfs_sufile_set_suinfo(nilfs->ns_sufile, kbuf, argv.v_size, in nilfs_ioctl_set_suinfo()