On Tue, Mar 24, 2020 at 11:20 AM Amir Goldstein <amir73il@xxxxxxxxx> wrote: > > On Tue, Mar 24, 2020 at 11:48 AM Miklos Szeredi <miklos@xxxxxxxxxx> wrote: > > > > On Mon, Mar 23, 2020 at 8:08 PM Amir Goldstein <amir73il@xxxxxxxxx> wrote: > > > + pr_warn_ratelimited("inode nlink too low (%pd2, ino=%lu, nlink=%u, upper_nlink=%u)\n", > > > + dentry, inode->i_ino, inode->i_nlink, > > > + iupper->i_nlink - index_nlink); > > > > Why warn? This is user triggerable, so the point is to not warn in this case. > > > > I thought the point was that user cannot trigger WARN_ON(). > I though pr_warn on non fatal filesystem inconsistency, like the one in > ovl_cleanup_index() is fare game. > The purpose of the warning is to alert the admin of a corrupted overlayfs > and possibly run fsck.overlay (when it becomes an official tool). Right, warning is okay if kernel detects an fsck'able inconsistency. But it's probably better not warn in the !OVL_INDEX case... Thanks, Miklos