Lines Matching refs:kbufs
791 struct nilfs_argv *argv, void **kbufs) in nilfs_ioctl_prepare_clean_segments() argument
796 ret = nilfs_ioctl_delete_checkpoints(nilfs, &argv[1], kbufs[1]); in nilfs_ioctl_prepare_clean_segments()
805 ret = nilfs_ioctl_free_vblocknrs(nilfs, &argv[2], kbufs[2]); in nilfs_ioctl_prepare_clean_segments()
814 ret = nilfs_ioctl_mark_blocks_dirty(nilfs, &argv[3], kbufs[3]); in nilfs_ioctl_prepare_clean_segments()
855 void *kbufs[5]; in nilfs_ioctl_clean_segments() local
883 kbufs[4] = memdup_user((void __user *)(unsigned long)argv[4].v_base, in nilfs_ioctl_clean_segments()
885 if (IS_ERR(kbufs[4])) { in nilfs_ioctl_clean_segments()
886 ret = PTR_ERR(kbufs[4]); in nilfs_ioctl_clean_segments()
905 kbufs[n] = NULL; in nilfs_ioctl_clean_segments()
909 kbufs[n] = vmalloc(len); in nilfs_ioctl_clean_segments()
910 if (!kbufs[n]) { in nilfs_ioctl_clean_segments()
914 if (copy_from_user(kbufs[n], base, len)) { in nilfs_ioctl_clean_segments()
916 vfree(kbufs[n]); in nilfs_ioctl_clean_segments()
932 ret = nilfs_ioctl_move_blocks(inode->i_sb, &argv[0], kbufs[0]); in nilfs_ioctl_clean_segments()
940 ret = nilfs_clean_segments(inode->i_sb, argv, kbufs); in nilfs_ioctl_clean_segments()
948 vfree(kbufs[n]); in nilfs_ioctl_clean_segments()
949 kfree(kbufs[4]); in nilfs_ioctl_clean_segments()