• Home
  • Raw
  • Download

Lines Matching refs:ops

399 	compat_xfs_attr_multiop_t		*ops;  in xfs_compat_attrmulti_by_handle()  local
424 ops = memdup_user(compat_ptr(am_hreq.ops), size); in xfs_compat_attrmulti_by_handle()
425 if (IS_ERR(ops)) { in xfs_compat_attrmulti_by_handle()
426 error = PTR_ERR(ops); in xfs_compat_attrmulti_by_handle()
437 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_compat_attrmulti_by_handle()
438 compat_ptr(ops[i].am_attrname), in xfs_compat_attrmulti_by_handle()
440 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_compat_attrmulti_by_handle()
442 if (ops[i].am_error < 0) in xfs_compat_attrmulti_by_handle()
445 switch (ops[i].am_opcode) { in xfs_compat_attrmulti_by_handle()
447 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_compat_attrmulti_by_handle()
449 compat_ptr(ops[i].am_attrvalue), in xfs_compat_attrmulti_by_handle()
450 &ops[i].am_length, ops[i].am_flags); in xfs_compat_attrmulti_by_handle()
453 ops[i].am_error = mnt_want_write_file(parfilp); in xfs_compat_attrmulti_by_handle()
454 if (ops[i].am_error) in xfs_compat_attrmulti_by_handle()
456 ops[i].am_error = xfs_attrmulti_attr_set( in xfs_compat_attrmulti_by_handle()
458 compat_ptr(ops[i].am_attrvalue), in xfs_compat_attrmulti_by_handle()
459 ops[i].am_length, ops[i].am_flags); in xfs_compat_attrmulti_by_handle()
463 ops[i].am_error = mnt_want_write_file(parfilp); in xfs_compat_attrmulti_by_handle()
464 if (ops[i].am_error) in xfs_compat_attrmulti_by_handle()
466 ops[i].am_error = xfs_attrmulti_attr_remove( in xfs_compat_attrmulti_by_handle()
468 ops[i].am_flags); in xfs_compat_attrmulti_by_handle()
472 ops[i].am_error = -EINVAL; in xfs_compat_attrmulti_by_handle()
476 if (copy_to_user(compat_ptr(am_hreq.ops), ops, size)) in xfs_compat_attrmulti_by_handle()
481 kfree(ops); in xfs_compat_attrmulti_by_handle()