fs/: remove caller signal_pending branch predictions
This is already done for us internally by the signal machinery. [akpm@linux-foundation.org: fix fs/buffer.c] Link: http://lkml.kernel.org/r/20181116002713.8474-7-dave@stgolabs.net Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
fa45f1162f
commit
08d405c8b8
@@ -105,7 +105,7 @@ static int wait_for_free(struct slot_map *m)
|
||||
left = t;
|
||||
else
|
||||
left = t + (left - n);
|
||||
if (unlikely(signal_pending(current)))
|
||||
if (signal_pending(current))
|
||||
left = -EINTR;
|
||||
} while (left > 0);
|
||||
|
||||
|
Reference in New Issue
Block a user