• Home
  • Raw
  • Download

Lines Matching refs:ops

516 	xfs_attr_multiop_t	*ops;  in xfs_attrmulti_by_handle()  local
540 ops = memdup_user(am_hreq.ops, size); in xfs_attrmulti_by_handle()
541 if (IS_ERR(ops)) { in xfs_attrmulti_by_handle()
542 error = PTR_ERR(ops); in xfs_attrmulti_by_handle()
553 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_attrmulti_by_handle()
554 ops[i].am_attrname, MAXNAMELEN); in xfs_attrmulti_by_handle()
555 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_attrmulti_by_handle()
557 if (ops[i].am_error < 0) in xfs_attrmulti_by_handle()
560 switch (ops[i].am_opcode) { in xfs_attrmulti_by_handle()
562 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_attrmulti_by_handle()
564 ops[i].am_attrvalue, &ops[i].am_length, in xfs_attrmulti_by_handle()
565 ops[i].am_flags); in xfs_attrmulti_by_handle()
568 ops[i].am_error = mnt_want_write_file(parfilp); in xfs_attrmulti_by_handle()
569 if (ops[i].am_error) in xfs_attrmulti_by_handle()
571 ops[i].am_error = xfs_attrmulti_attr_set( in xfs_attrmulti_by_handle()
573 ops[i].am_attrvalue, ops[i].am_length, in xfs_attrmulti_by_handle()
574 ops[i].am_flags); in xfs_attrmulti_by_handle()
578 ops[i].am_error = mnt_want_write_file(parfilp); in xfs_attrmulti_by_handle()
579 if (ops[i].am_error) in xfs_attrmulti_by_handle()
581 ops[i].am_error = xfs_attrmulti_attr_remove( in xfs_attrmulti_by_handle()
583 ops[i].am_flags); in xfs_attrmulti_by_handle()
587 ops[i].am_error = -EINVAL; in xfs_attrmulti_by_handle()
591 if (copy_to_user(am_hreq.ops, ops, size)) in xfs_attrmulti_by_handle()
596 kfree(ops); in xfs_attrmulti_by_handle()