Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e76a2b65
Commit
e76a2b65
authored
Jun 07, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: add might_sleep() annotations for fsck_err()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
546b6537
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
fs/bcachefs/error.c
fs/bcachefs/error.c
+2
-0
fs/bcachefs/error.h
fs/bcachefs/error.h
+4
-1
No files found.
fs/bcachefs/error.c
View file @
e76a2b65
...
...
@@ -210,6 +210,8 @@ int bch2_fsck_err(struct bch_fs *c,
int
ret
=
-
BCH_ERR_fsck_ignore
;
const
char
*
action_orig
=
"fix?"
,
*
action
=
action_orig
;
might_sleep
();
if
(
!
WARN_ON
(
err
>=
ARRAY_SIZE
(
fsck_flags_extra
)))
flags
|=
fsck_flags_extra
[
err
];
...
...
fs/bcachefs/error.h
View file @
e76a2b65
...
...
@@ -136,7 +136,10 @@ void bch2_flush_fsck_errs(struct bch_fs *);
/* XXX: mark in superblock that filesystem contains errors, if we ignore: */
#define __fsck_err_on(cond, c, _flags, _err_type, ...) \
(unlikely(cond) ? __fsck_err(c, _flags, _err_type, __VA_ARGS__) : false)
({ \
might_sleep(); \
(unlikely(cond) ? __fsck_err(c, _flags, _err_type, __VA_ARGS__) : false);\
}) \
#define need_fsck_err_on(cond, c, _err_type, ...) \
__fsck_err_on(cond, c, FSCK_CAN_IGNORE|FSCK_NEED_FSCK, _err_type, __VA_ARGS__)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment