mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
fc6c01e2ea
Start a new header, errcode.h, for bcachefs-private error codes - more error codes will be converted later. This patch just converts bucket_alloc_ret so that they can be mixed with standard error codes and passed as ERR_PTR errors - the ec.c code was doing this already, but incorrectly. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
13 lines
272 B
C
13 lines
272 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHEFS_ERRCODE_H
|
|
#define _BCACHEFS_ERRCODE_H
|
|
|
|
enum {
|
|
/* Bucket allocator: */
|
|
OPEN_BUCKETS_EMPTY = 2048,
|
|
FREELIST_EMPTY, /* Allocator thread not keeping up */
|
|
INSUFFICIENT_DEVICES,
|
|
};
|
|
|
|
#endif /* _BCACHFES_ERRCODE_H */
|