ocfs2: fix some small problems
authorGang He <[email protected]>
Thu, 5 Apr 2018 23:19:25 +0000 (16:19 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:22 +0000 (21:36 -0700)
commit8fc2cb4ba03ee3502ec23de825cd133f5388738f
treee56cf74dc125f45ff64bcb0d255ab287f2790ec0
parent5ac94386194eccc2125c17d1b75aa8364584f585
ocfs2: fix some small problems

First, move setting fe_done = 1 in spin lock, avoid bring any potential
race condition.

Second, tune mlog message level from ERROR to NOTICE, since the message
should not belong to error message.

Third, tune errno to -EAGAIN when file check queue is full, this errno
is more appropriate in the case.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Gang He <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joseph Qi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/filecheck.c