diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-07-15 03:06:51 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:07 +0200 |
commit | 88c07f739786d00c7526d598956955c8310d72d2 (patch) | |
tree | 9f34060d43a1588532ff962cdf4c0d68d1a6110c /fs/bcachefs/error.c | |
parent | bcachefs: Initial commit (diff) | |
download | linux-88c07f739786d00c7526d598956955c8310d72d2.tar.xz linux-88c07f739786d00c7526d598956955c8310d72d2.zip |
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.c | 5 |
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 |