]> Git Repo - linux.git/commit
mm: remove nrexceptional from inode: remove BUG_ON
authorHugh Dickins <[email protected]>
Wed, 5 May 2021 01:32:57 +0000 (18:32 -0700)
committerLinus Torvalds <[email protected]>
Wed, 5 May 2021 18:27:20 +0000 (11:27 -0700)
commit786b31121a2ce4309a81a7f36d63f02ca588839e
tree06e57daf451657c0a621521303bdbce732b58969
parent8bc3c481b3d0dcef2cf8e1b7c6b780af6725f7e3
mm: remove nrexceptional from inode: remove BUG_ON

clear_inode()'s BUG_ON(!mapping_empty(&inode->i_data)) is unsafe: we
know of two ways in which nodes can and do (on rare occasions) get left
behind.  Until those are fixed, do not BUG_ON() nor even WARN_ON().

Yes, this will then leak those nodes (or the next user of the struct
inode may use them); but this has been happening for years, and the new
BUG_ON(!mapping_empty) was only guilty of revealing that.  A proper fix
will follow, but no hurry.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Hugh Dickins <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/inode.c
This page took 0.055009 seconds and 4 git commands to generate.