• Home
  • Raw
  • Download

Lines Matching refs:ops

502 	xfs_attr_multiop_t	*ops;  in xfs_attrmulti_by_handle()  local
526 ops = memdup_user(am_hreq.ops, size); in xfs_attrmulti_by_handle()
527 if (IS_ERR(ops)) { in xfs_attrmulti_by_handle()
528 error = PTR_ERR(ops); in xfs_attrmulti_by_handle()
539 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_attrmulti_by_handle()
540 ops[i].am_attrname, MAXNAMELEN); in xfs_attrmulti_by_handle()
541 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_attrmulti_by_handle()
543 if (ops[i].am_error < 0) in xfs_attrmulti_by_handle()
546 switch (ops[i].am_opcode) { in xfs_attrmulti_by_handle()
548 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_attrmulti_by_handle()
550 ops[i].am_attrvalue, &ops[i].am_length, in xfs_attrmulti_by_handle()
551 ops[i].am_flags); in xfs_attrmulti_by_handle()
554 ops[i].am_error = mnt_want_write_file(parfilp); in xfs_attrmulti_by_handle()
555 if (ops[i].am_error) in xfs_attrmulti_by_handle()
557 ops[i].am_error = xfs_attrmulti_attr_set( in xfs_attrmulti_by_handle()
559 ops[i].am_attrvalue, ops[i].am_length, in xfs_attrmulti_by_handle()
560 ops[i].am_flags); in xfs_attrmulti_by_handle()
564 ops[i].am_error = mnt_want_write_file(parfilp); in xfs_attrmulti_by_handle()
565 if (ops[i].am_error) in xfs_attrmulti_by_handle()
567 ops[i].am_error = xfs_attrmulti_attr_remove( in xfs_attrmulti_by_handle()
569 ops[i].am_flags); in xfs_attrmulti_by_handle()
573 ops[i].am_error = -EINVAL; in xfs_attrmulti_by_handle()
577 if (copy_to_user(am_hreq.ops, ops, size)) in xfs_attrmulti_by_handle()
582 kfree(ops); in xfs_attrmulti_by_handle()