Searched refs:kbuf (Results 1 – 7 of 7) sorted by relevance
/fs/ |
D | statfs.c | 262 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs() argument 266 if ((kbuf->f_blocks | kbuf->f_bfree | kbuf->f_bavail | in put_compat_statfs() 267 kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) in put_compat_statfs() 271 if (kbuf->f_files != 0xffffffffffffffffULL in put_compat_statfs() 272 && (kbuf->f_files & 0xffffffff00000000ULL)) in put_compat_statfs() 274 if (kbuf->f_ffree != 0xffffffffffffffffULL in put_compat_statfs() 275 && (kbuf->f_ffree & 0xffffffff00000000ULL)) in put_compat_statfs() 279 buf.f_type = kbuf->f_type; in put_compat_statfs() 280 buf.f_bsize = kbuf->f_bsize; in put_compat_statfs() 281 buf.f_blocks = kbuf->f_blocks; in put_compat_statfs() [all …]
|
D | dcookies.c | 154 char * kbuf; in do_lookup_dcookie() local 176 kbuf = kmalloc(PAGE_SIZE, GFP_KERNEL); in do_lookup_dcookie() 177 if (!kbuf) in do_lookup_dcookie() 181 path = d_path(&dcs->path, kbuf, PAGE_SIZE); in do_lookup_dcookie() 192 pathlen = kbuf + PAGE_SIZE - path; in do_lookup_dcookie() 200 kfree(kbuf); in do_lookup_dcookie()
|
/fs/dlm/ |
D | user.c | 505 struct dlm_write_request *kbuf; in device_write() local 522 kbuf = memdup_user_nul(buf, count); in device_write() 523 if (IS_ERR(kbuf)) in device_write() 524 return PTR_ERR(kbuf); in device_write() 526 if (check_version(kbuf)) { in device_write() 532 if (!kbuf->is64bit) { in device_write() 539 k32buf = (struct dlm_write_request32 *)kbuf; in device_write() 542 kbuf = kzalloc(sizeof(struct dlm_write_request) + namelen + 1, in device_write() 544 if (!kbuf) { in device_write() 552 compat_input(kbuf, k32buf, namelen); in device_write() [all …]
|
/fs/xfs/ |
D | xfs_ioctl.c | 379 char *kbuf; in xfs_attrlist_by_handle() local 399 kbuf = kmem_zalloc_large(al_hreq.buflen, 0); in xfs_attrlist_by_handle() 400 if (!kbuf) in xfs_attrlist_by_handle() 404 error = xfs_attr_list(XFS_I(d_inode(dentry)), kbuf, al_hreq.buflen, in xfs_attrlist_by_handle() 414 if (copy_to_user(al_hreq.buffer, kbuf, al_hreq.buflen)) in xfs_attrlist_by_handle() 418 kmem_free(kbuf); in xfs_attrlist_by_handle() 432 unsigned char *kbuf; in xfs_attrmulti_attr_get() local 437 kbuf = kmem_zalloc_large(*len, 0); in xfs_attrmulti_attr_get() 438 if (!kbuf) in xfs_attrmulti_attr_get() 441 error = xfs_attr_get(XFS_I(inode), name, &kbuf, (int *)len, flags); in xfs_attrmulti_attr_get() [all …]
|
D | xfs_ioctl32.c | 362 char *kbuf; in xfs_compat_attrlist_by_handle() local 384 kbuf = kmem_zalloc_large(al_hreq.buflen, 0); in xfs_compat_attrlist_by_handle() 385 if (!kbuf) in xfs_compat_attrlist_by_handle() 389 error = xfs_attr_list(XFS_I(d_inode(dentry)), kbuf, al_hreq.buflen, in xfs_compat_attrlist_by_handle() 399 if (copy_to_user(compat_ptr(al_hreq.buffer), kbuf, al_hreq.buflen)) in xfs_compat_attrlist_by_handle() 403 kmem_free(kbuf); in xfs_compat_attrlist_by_handle()
|
/fs/nilfs2/ |
D | ioctl.c | 1223 void *kbuf; in nilfs_ioctl_set_suinfo() local 1254 kbuf = vmalloc(len); in nilfs_ioctl_set_suinfo() 1255 if (!kbuf) { in nilfs_ioctl_set_suinfo() 1260 if (copy_from_user(kbuf, base, len)) { in nilfs_ioctl_set_suinfo() 1266 ret = nilfs_sufile_set_suinfo(nilfs->ns_sufile, kbuf, argv.v_size, in nilfs_ioctl_set_suinfo() 1274 vfree(kbuf); in nilfs_ioctl_set_suinfo()
|
/fs/ocfs2/ |
D | stack_user.c | 260 char kbuf[OCFS2_CONTROL_PROTO_LEN]; in ocfs2_control_validate_protocol() local 262 ret = ocfs2_control_cfu(kbuf, OCFS2_CONTROL_PROTO_LEN, in ocfs2_control_validate_protocol() 267 if (strncmp(kbuf, OCFS2_CONTROL_PROTO, OCFS2_CONTROL_PROTO_LEN)) in ocfs2_control_validate_protocol()
|