projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a88171c
)
bcachefs: Change lockrestart_do() to always call bch2_trans_begin()
author
Kent Overstreet
<kent.overstreet@gmail.com>
Wed, 28 Jul 2021 20:17:10 +0000
(16:17 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:09 +0000
(17:09 -0400)
More consistent behaviour means less likely to trip over ourselves in
silly ways.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_update.h
patch
|
blob
|
history
diff --git
a/fs/bcachefs/btree_update.h
b/fs/bcachefs/btree_update.h
index
b5f35a4
..
a1f2d98
100644
(file)
--- a/
fs/bcachefs/btree_update.h
+++ b/
fs/bcachefs/btree_update.h
@@
-110,12
+110,10
@@
static inline int bch2_trans_commit(struct btree_trans *trans,
({ \
int _ret; \
\
- while (1) { \
- _ret = (_do); \
- if (_ret != -EINTR) \
- break; \
+ do { \
bch2_trans_begin(_trans); \
- } \
+ _ret = (_do); \
+ } while (_ret == -EINTR); \
\
_ret; \
})