diff options
Diffstat (limited to 'fs/xfs/xfs_inode_fork.c')
-rw-r--r-- | fs/xfs/xfs_inode_fork.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/fs/xfs/xfs_inode_fork.c b/fs/xfs/xfs_inode_fork.c index cfee14a83cfe..06abaeef1715 100644 --- a/fs/xfs/xfs_inode_fork.c +++ b/fs/xfs/xfs_inode_fork.c | |||
@@ -721,15 +721,16 @@ xfs_idestroy_fork( | |||
721 | } | 721 | } |
722 | 722 | ||
723 | /* | 723 | /* |
724 | * xfs_iextents_copy() | 724 | * Convert in-core extents to on-disk form |
725 | * | 725 | * |
726 | * This is called to copy the REAL extents (as opposed to the delayed | 726 | * For either the data or attr fork in extent format, we need to endian convert |
727 | * allocation extents) from the inode into the given buffer. It | 727 | * the in-core extent as we place them into the on-disk inode. |
728 | * returns the number of bytes copied into the buffer. | ||
729 | * | 728 | * |
730 | * If there are no delayed allocation extents, then we can just | 729 | * In the case of the data fork, the in-core and on-disk fork sizes can be |
731 | * memcpy() the extents into the buffer. Otherwise, we need to | 730 | * different due to delayed allocation extents. We only copy on-disk extents |
732 | * examine each extent in turn and skip those which are delayed. | 731 | * here, so callers must always use the physical fork size to determine the |
732 | * size of the buffer passed to this routine. We will return the size actually | ||
733 | * used. | ||
733 | */ | 734 | */ |
734 | int | 735 | int |
735 | xfs_iextents_copy( | 736 | xfs_iextents_copy( |