xfs_attr.h (4136e38af728eddcab2e51aecde28e94d0782b9b) | xfs_attr.h (e3c5de22026fda01674c400b97f96857dfb58aab) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2000,2002-2003,2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#ifndef __XFS_ATTR_H__ 7#define __XFS_ATTR_H__ 8 --- 420 unchanged lines hidden (view full) --- 429 * │ │ 430 * ├──────────┘ 431 * │ 432 * v 433 * done 434 */ 435 436/* | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2000,2002-2003,2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#ifndef __XFS_ATTR_H__ 7#define __XFS_ATTR_H__ 8 --- 420 unchanged lines hidden (view full) --- 429 * │ │ 430 * ├──────────┘ 431 * │ 432 * v 433 * done 434 */ 435 436/* |
437 * Enum values for xfs_attr_item.xattri_da_state | 437 * Enum values for xfs_attr_intent.xattri_da_state |
438 * 439 * These values are used by delayed attribute operations to keep track of where 440 * they were before they returned -EAGAIN. A return code of -EAGAIN signals the 441 * calling function to roll the transaction, and then call the subroutine to 442 * finish the operation. The enum is then used by the subroutine to jump back 443 * to where it was and resume executing where it left off. 444 */ 445enum xfs_delattr_state { --- 53 unchanged lines hidden (view full) --- 499 { XFS_DAS_NODE_REMOVE_OLD, "XFS_DAS_NODE_REMOVE_OLD" }, \ 500 { XFS_DAS_NODE_REMOVE_RMT, "XFS_DAS_NODE_REMOVE_RMT" }, \ 501 { XFS_DAS_NODE_REMOVE_ATTR, "XFS_DAS_NODE_REMOVE_ATTR" }, \ 502 { XFS_DAS_DONE, "XFS_DAS_DONE" } 503 504/* 505 * Context used for keeping track of delayed attribute operations 506 */ | 438 * 439 * These values are used by delayed attribute operations to keep track of where 440 * they were before they returned -EAGAIN. A return code of -EAGAIN signals the 441 * calling function to roll the transaction, and then call the subroutine to 442 * finish the operation. The enum is then used by the subroutine to jump back 443 * to where it was and resume executing where it left off. 444 */ 445enum xfs_delattr_state { --- 53 unchanged lines hidden (view full) --- 499 { XFS_DAS_NODE_REMOVE_OLD, "XFS_DAS_NODE_REMOVE_OLD" }, \ 500 { XFS_DAS_NODE_REMOVE_RMT, "XFS_DAS_NODE_REMOVE_RMT" }, \ 501 { XFS_DAS_NODE_REMOVE_ATTR, "XFS_DAS_NODE_REMOVE_ATTR" }, \ 502 { XFS_DAS_DONE, "XFS_DAS_DONE" } 503 504/* 505 * Context used for keeping track of delayed attribute operations 506 */ |
507struct xfs_attr_item { | 507struct xfs_attr_intent { |
508 /* 509 * used to log this item to an intent containing a list of attrs to 510 * commit later 511 */ 512 struct list_head xattri_list; 513 514 /* Used in xfs_attr_node_removename to roll through removing blocks */ 515 struct xfs_da_state *xattri_da_state; --- 30 unchanged lines hidden (view full) --- 546int xfs_attr_inactive(struct xfs_inode *dp); 547int xfs_attr_list_ilocked(struct xfs_attr_list_context *); 548int xfs_attr_list(struct xfs_attr_list_context *); 549int xfs_inode_hasattr(struct xfs_inode *ip); 550bool xfs_attr_is_leaf(struct xfs_inode *ip); 551int xfs_attr_get_ilocked(struct xfs_da_args *args); 552int xfs_attr_get(struct xfs_da_args *args); 553int xfs_attr_set(struct xfs_da_args *args); | 508 /* 509 * used to log this item to an intent containing a list of attrs to 510 * commit later 511 */ 512 struct list_head xattri_list; 513 514 /* Used in xfs_attr_node_removename to roll through removing blocks */ 515 struct xfs_da_state *xattri_da_state; --- 30 unchanged lines hidden (view full) --- 546int xfs_attr_inactive(struct xfs_inode *dp); 547int xfs_attr_list_ilocked(struct xfs_attr_list_context *); 548int xfs_attr_list(struct xfs_attr_list_context *); 549int xfs_inode_hasattr(struct xfs_inode *ip); 550bool xfs_attr_is_leaf(struct xfs_inode *ip); 551int xfs_attr_get_ilocked(struct xfs_da_args *args); 552int xfs_attr_get(struct xfs_da_args *args); 553int xfs_attr_set(struct xfs_da_args *args); |
554int xfs_attr_set_iter(struct xfs_attr_item *attr); 555int xfs_attr_remove_iter(struct xfs_attr_item *attr); | 554int xfs_attr_set_iter(struct xfs_attr_intent *attr); 555int xfs_attr_remove_iter(struct xfs_attr_intent *attr); |
556bool xfs_attr_namecheck(const void *name, size_t length); 557int xfs_attr_calc_size(struct xfs_da_args *args, int *local); 558void xfs_init_attr_trans(struct xfs_da_args *args, struct xfs_trans_res *tres, 559 unsigned int *total); 560 561/* 562 * Check to see if the attr should be upgraded from non-existent or shortform to 563 * single-leaf-block attribute list. --- 64 unchanged lines hidden --- | 556bool xfs_attr_namecheck(const void *name, size_t length); 557int xfs_attr_calc_size(struct xfs_da_args *args, int *local); 558void xfs_init_attr_trans(struct xfs_da_args *args, struct xfs_trans_res *tres, 559 unsigned int *total); 560 561/* 562 * Check to see if the attr should be upgraded from non-existent or shortform to 563 * single-leaf-block attribute list. --- 64 unchanged lines hidden --- |