summaryrefslogtreecommitdiff
path: root/fs/bcachefs/error.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-07-15 04:06:51 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:07 +0300
commit88c07f739786d00c7526d598956955c8310d72d2 (patch)
tree9f34060d43a1588532ff962cdf4c0d68d1a6110c /fs/bcachefs/error.c
parent1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a (diff)
downloadlinux-88c07f739786d00c7526d598956955c8310d72d2.tar.xz
bcachefs: Only check inode i_nlink during full fsck
Now that all filesystem operatinos that manipulate the filesystem heirachy and i_nlink are fully atomic, we can add a feature bit to indicate i_nlink doesn't need to be checked. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/error.c')
-rw-r--r--fs/bcachefs/error.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/error.c b/fs/bcachefs/error.c
index e975fab43d49..08e79166dae4 100644
--- a/fs/bcachefs/error.c
+++ b/fs/bcachefs/error.c
@@ -132,8 +132,9 @@ print:
mutex_unlock(&c->fsck_error_lock);
- if (fix)
- set_bit(BCH_FS_FSCK_FIXED_ERRORS, &c->flags);
+ set_bit(fix
+ ? BCH_FS_FSCK_FIXED_ERRORS
+ : BCH_FS_FSCK_UNFIXED_ERRORS, &c->flags);
return fix ? FSCK_ERR_FIX
: flags & FSCK_CAN_IGNORE ? FSCK_ERR_IGNORE