Lines Matching refs:ops
540 xfs_attr_multiop_t *ops; in xfs_attrmulti_by_handle() local
561 ops = kmalloc(size, GFP_KERNEL); in xfs_attrmulti_by_handle()
562 if (!ops) in xfs_attrmulti_by_handle()
566 if (copy_from_user(ops, am_hreq.ops, size)) in xfs_attrmulti_by_handle()
576 ops[i].am_error = strncpy_from_user(attr_name, in xfs_attrmulti_by_handle()
577 ops[i].am_attrname, MAXNAMELEN); in xfs_attrmulti_by_handle()
578 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_attrmulti_by_handle()
580 if (ops[i].am_error < 0) in xfs_attrmulti_by_handle()
583 switch (ops[i].am_opcode) { in xfs_attrmulti_by_handle()
585 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_attrmulti_by_handle()
587 ops[i].am_attrvalue, &ops[i].am_length, in xfs_attrmulti_by_handle()
588 ops[i].am_flags); in xfs_attrmulti_by_handle()
591 ops[i].am_error = mnt_want_write(parfilp->f_path.mnt); in xfs_attrmulti_by_handle()
592 if (ops[i].am_error) in xfs_attrmulti_by_handle()
594 ops[i].am_error = xfs_attrmulti_attr_set( in xfs_attrmulti_by_handle()
596 ops[i].am_attrvalue, ops[i].am_length, in xfs_attrmulti_by_handle()
597 ops[i].am_flags); in xfs_attrmulti_by_handle()
601 ops[i].am_error = mnt_want_write(parfilp->f_path.mnt); in xfs_attrmulti_by_handle()
602 if (ops[i].am_error) in xfs_attrmulti_by_handle()
604 ops[i].am_error = xfs_attrmulti_attr_remove( in xfs_attrmulti_by_handle()
606 ops[i].am_flags); in xfs_attrmulti_by_handle()
610 ops[i].am_error = EINVAL; in xfs_attrmulti_by_handle()
614 if (copy_to_user(am_hreq.ops, ops, size)) in xfs_attrmulti_by_handle()
619 kfree(ops); in xfs_attrmulti_by_handle()