@@ -57,9 +57,9 @@ STATIC int xfs_attr_leaf_try_add(struct xfs_da_args *args, struct xfs_buf *bp);
5757 */
5858STATIC int xfs_attr_node_get (xfs_da_args_t * args );
5959STATIC void xfs_attr_restore_rmt_blk (struct xfs_da_args * args );
60- static int xfs_attr_node_try_addname (struct xfs_attr_item * attr );
61- STATIC int xfs_attr_node_addname_find_attr (struct xfs_attr_item * attr );
62- STATIC int xfs_attr_node_remove_attr (struct xfs_attr_item * attr );
60+ static int xfs_attr_node_try_addname (struct xfs_attr_intent * attr );
61+ STATIC int xfs_attr_node_addname_find_attr (struct xfs_attr_intent * attr );
62+ STATIC int xfs_attr_node_remove_attr (struct xfs_attr_intent * attr );
6363STATIC int xfs_attr_node_lookup (struct xfs_da_args * args ,
6464 struct xfs_da_state * state );
6565
@@ -376,7 +376,7 @@ xfs_attr_try_sf_addname(
376376
377377static int
378378xfs_attr_sf_addname (
379- struct xfs_attr_item * attr )
379+ struct xfs_attr_intent * attr )
380380{
381381 struct xfs_da_args * args = attr -> xattri_da_args ;
382382 struct xfs_inode * dp = args -> dp ;
@@ -422,7 +422,7 @@ xfs_attr_sf_addname(
422422 */
423423static enum xfs_delattr_state
424424xfs_attr_complete_op (
425- struct xfs_attr_item * attr ,
425+ struct xfs_attr_intent * attr ,
426426 enum xfs_delattr_state replace_state )
427427{
428428 struct xfs_da_args * args = attr -> xattri_da_args ;
@@ -438,7 +438,7 @@ xfs_attr_complete_op(
438438
439439static int
440440xfs_attr_leaf_addname (
441- struct xfs_attr_item * attr )
441+ struct xfs_attr_intent * attr )
442442{
443443 struct xfs_da_args * args = attr -> xattri_da_args ;
444444 int error ;
@@ -492,7 +492,7 @@ xfs_attr_leaf_addname(
492492 */
493493static int
494494xfs_attr_node_addname (
495- struct xfs_attr_item * attr )
495+ struct xfs_attr_intent * attr )
496496{
497497 struct xfs_da_args * args = attr -> xattri_da_args ;
498498 int error ;
@@ -529,7 +529,7 @@ xfs_attr_node_addname(
529529
530530static int
531531xfs_attr_rmtval_alloc (
532- struct xfs_attr_item * attr )
532+ struct xfs_attr_intent * attr )
533533{
534534 struct xfs_da_args * args = attr -> xattri_da_args ;
535535 int error = 0 ;
@@ -596,7 +596,7 @@ xfs_attr_leaf_mark_incomplete(
596596/* Ensure the da state of an xattr deferred work item is ready to go. */
597597static inline void
598598xfs_attr_item_init_da_state (
599- struct xfs_attr_item * attr )
599+ struct xfs_attr_intent * attr )
600600{
601601 struct xfs_da_args * args = attr -> xattri_da_args ;
602602
@@ -613,7 +613,7 @@ xfs_attr_item_init_da_state(
613613 */
614614static
615615int xfs_attr_node_removename_setup (
616- struct xfs_attr_item * attr )
616+ struct xfs_attr_intent * attr )
617617{
618618 struct xfs_da_args * args = attr -> xattri_da_args ;
619619 struct xfs_da_state * state ;
@@ -651,7 +651,7 @@ int xfs_attr_node_removename_setup(
651651 */
652652static int
653653xfs_attr_leaf_remove_attr (
654- struct xfs_attr_item * attr )
654+ struct xfs_attr_intent * attr )
655655{
656656 struct xfs_da_args * args = attr -> xattri_da_args ;
657657 struct xfs_inode * dp = args -> dp ;
@@ -716,7 +716,7 @@ xfs_attr_leaf_shrink(
716716 */
717717int
718718xfs_attr_set_iter (
719- struct xfs_attr_item * attr )
719+ struct xfs_attr_intent * attr )
720720{
721721 struct xfs_da_args * args = attr -> xattri_da_args ;
722722 int error = 0 ;
@@ -893,13 +893,13 @@ xfs_attr_lookup(
893893}
894894
895895static int
896- xfs_attr_item_init (
896+ xfs_attr_intent_init (
897897 struct xfs_da_args * args ,
898898 unsigned int op_flags , /* op flag (set or remove) */
899- struct xfs_attr_item * * attr ) /* new xfs_attr_item */
899+ struct xfs_attr_intent * * attr ) /* new xfs_attr_intent */
900900{
901901
902- struct xfs_attr_item * new ;
902+ struct xfs_attr_intent * new ;
903903
904904 new = kmem_cache_zalloc (xfs_attr_intent_cache , GFP_NOFS | __GFP_NOFAIL );
905905 new -> xattri_op_flags = op_flags ;
@@ -914,10 +914,10 @@ static int
914914xfs_attr_defer_add (
915915 struct xfs_da_args * args )
916916{
917- struct xfs_attr_item * new ;
917+ struct xfs_attr_intent * new ;
918918 int error = 0 ;
919919
920- error = xfs_attr_item_init (args , XFS_ATTRI_OP_FLAGS_SET , & new );
920+ error = xfs_attr_intent_init (args , XFS_ATTRI_OP_FLAGS_SET , & new );
921921 if (error )
922922 return error ;
923923
@@ -933,10 +933,10 @@ static int
933933xfs_attr_defer_replace (
934934 struct xfs_da_args * args )
935935{
936- struct xfs_attr_item * new ;
936+ struct xfs_attr_intent * new ;
937937 int error = 0 ;
938938
939- error = xfs_attr_item_init (args , XFS_ATTRI_OP_FLAGS_REPLACE , & new );
939+ error = xfs_attr_intent_init (args , XFS_ATTRI_OP_FLAGS_REPLACE , & new );
940940 if (error )
941941 return error ;
942942
@@ -953,10 +953,10 @@ xfs_attr_defer_remove(
953953 struct xfs_da_args * args )
954954{
955955
956- struct xfs_attr_item * new ;
956+ struct xfs_attr_intent * new ;
957957 int error ;
958958
959- error = xfs_attr_item_init (args , XFS_ATTRI_OP_FLAGS_REMOVE , & new );
959+ error = xfs_attr_intent_init (args , XFS_ATTRI_OP_FLAGS_REMOVE , & new );
960960 if (error )
961961 return error ;
962962
@@ -1394,7 +1394,7 @@ xfs_attr_node_lookup(
13941394
13951395STATIC int
13961396xfs_attr_node_addname_find_attr (
1397- struct xfs_attr_item * attr )
1397+ struct xfs_attr_intent * attr )
13981398{
13991399 struct xfs_da_args * args = attr -> xattri_da_args ;
14001400 int error ;
@@ -1447,7 +1447,7 @@ xfs_attr_node_addname_find_attr(
14471447 */
14481448static int
14491449xfs_attr_node_try_addname (
1450- struct xfs_attr_item * attr )
1450+ struct xfs_attr_intent * attr )
14511451{
14521452 struct xfs_da_args * args = attr -> xattri_da_args ;
14531453 struct xfs_da_state * state = attr -> xattri_da_state ;
@@ -1513,7 +1513,7 @@ xfs_attr_node_removename(
15131513
15141514static int
15151515xfs_attr_node_remove_attr (
1516- struct xfs_attr_item * attr )
1516+ struct xfs_attr_intent * attr )
15171517{
15181518 struct xfs_da_args * args = attr -> xattri_da_args ;
15191519 struct xfs_da_state * state = xfs_da_state_alloc (args );
@@ -1616,8 +1616,8 @@ xfs_attr_namecheck(
16161616int __init
16171617xfs_attr_intent_init_cache (void )
16181618{
1619- xfs_attr_intent_cache = kmem_cache_create ("xfs_attr_item " ,
1620- sizeof (struct xfs_attr_item ),
1619+ xfs_attr_intent_cache = kmem_cache_create ("xfs_attr_intent " ,
1620+ sizeof (struct xfs_attr_intent ),
16211621 0 , 0 , NULL );
16221622
16231623 return xfs_attr_intent_cache != NULL ? 0 : - ENOMEM ;
0 commit comments