Skip to content

Commit 1baa280

Browse files
Christoph Hellwigdjwong
authored andcommitted
xfs: remove the unused XFS_ALLOC_USERDATA flag
Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent ecfc28a commit 1baa280

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

fs/xfs/libxfs/xfs_alloc.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ typedef struct xfs_alloc_arg {
8181
/*
8282
* Defines for datatype
8383
*/
84-
#define XFS_ALLOC_USERDATA (1 << 0)/* allocation is for user data*/
85-
#define XFS_ALLOC_INITIAL_USER_DATA (1 << 1)/* special case start of file */
86-
#define XFS_ALLOC_USERDATA_ZERO (1 << 2)/* zero extent on allocation */
87-
#define XFS_ALLOC_NOBUSY (1 << 3)/* Busy extents not allowed */
84+
#define XFS_ALLOC_INITIAL_USER_DATA (1 << 0)/* special case start of file */
85+
#define XFS_ALLOC_USERDATA_ZERO (1 << 1)/* zero extent on allocation */
86+
#define XFS_ALLOC_NOBUSY (1 << 2)/* Busy extents not allowed */
8887

8988
static inline bool
9089
xfs_alloc_is_userdata(int datatype)

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4042,12 +4042,8 @@ xfs_bmapi_allocate(
40424042
*/
40434043
if (!(bma->flags & XFS_BMAPI_METADATA)) {
40444044
bma->datatype = XFS_ALLOC_NOBUSY;
4045-
if (whichfork == XFS_DATA_FORK) {
4046-
if (bma->offset == 0)
4047-
bma->datatype |= XFS_ALLOC_INITIAL_USER_DATA;
4048-
else
4049-
bma->datatype |= XFS_ALLOC_USERDATA;
4050-
}
4045+
if (whichfork == XFS_DATA_FORK && bma->offset == 0)
4046+
bma->datatype |= XFS_ALLOC_INITIAL_USER_DATA;
40514047
if (bma->flags & XFS_BMAPI_ZERO)
40524048
bma->datatype |= XFS_ALLOC_USERDATA_ZERO;
40534049
}

0 commit comments

Comments
 (0)