aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorZhiguo Niu <[email protected]>2024-02-20 14:11:24 +0800
committerJaegeuk Kim <[email protected]>2024-02-29 08:34:34 -0800
commitf9e28904e6442019043a8e94ec6747a064d06003 (patch)
tree7bd07bea046eae04863f69be640d65e4ffb27203 /net/lapb/lapb_subr.c
parente24e8333d0f3110473c6e6a20afd51911984e901 (diff)
f2fs: stop checkpoint when get a out-of-bounds segment
There is low probability that an out-of-bounds segment will be got on a small-capacity device. In order to prevent subsequent write requests allocating block address from this invalid segment, which may cause unexpected issue, stop checkpoint should be performed. Also introduce a new stop cp reason: STOP_CP_REASON_NO_SEGMENT. Note, f2fs_stop_checkpoint(, false) is complex and it may sleep, so we should move it outside segmap_lock spinlock coverage in get_new_segment(). Signed-off-by: Zhiguo Niu <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions