Skip to content

Commit ce42b5d

Browse files
Christoph HellwigChandan Babu R
authored andcommitted
xfs: return -ENOSPC from xfs_rtallocate_*
Just return -ENOSPC instead of returning 0 and setting the return rt extent number to NULLRTEXTNO. This is turn removes all users of NULLRTEXTNO, so remove that as well. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: "Darrick J. Wong" <[email protected]> Signed-off-by: Chandan Babu R <[email protected]>
1 parent 152e212 commit ce42b5d

File tree

2 files changed

+71
-141
lines changed

2 files changed

+71
-141
lines changed

fs/xfs/libxfs/xfs_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ typedef void * xfs_failaddr_t;
5151
#define NULLRFSBLOCK ((xfs_rfsblock_t)-1)
5252
#define NULLRTBLOCK ((xfs_rtblock_t)-1)
5353
#define NULLFILEOFF ((xfs_fileoff_t)-1)
54-
#define NULLRTEXTNO ((xfs_rtxnum_t)-1)
5554

5655
#define NULLAGBLOCK ((xfs_agblock_t)-1)
5756
#define NULLAGNUMBER ((xfs_agnumber_t)-1)

0 commit comments

Comments
 (0)