aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-04 13:45:33 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-01 11:47:40 -0500
commit267b801fda10b70eca4001a819fcac07f023df6b (patch)
tree41d9bfd3452ecd85ab133d82e753c4e3f4c0a43e /fs/bcachefs/debug.c
parentbcachefs: BCH_IOCTL_FSCK_OFFLINE (diff)
downloadlinux-rng-267b801fda10b70eca4001a819fcac07f023df6b.tar.xz
linux-rng-267b801fda10b70eca4001a819fcac07f023df6b.zip
bcachefs: BCH_IOCTL_FSCK_ONLINE
This adds a new ioctl for running fsck on a mounted, in use filesystem. This reuses the fsck_thread code from the previous patch for running fsck on an offline, unmounted filesystem, so that log messages for the fsck thread are redirected to userspace. Only one running fsck instance is allowed at a time; a new semaphore (since the lock will be taken by one thread and released by another) is added for this. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/debug.c')
0 files changed, 0 insertions, 0 deletions