vfs: __predict common case in VFS_EPILOGUE/PROLOGUE
NFS is the only in-tree filesystem using the feature, but all ops test for it. Currently the resulting sigdefer calls have to be jumped over in the common case. This is a bandaid, longer term fix will move this feature away. Approved by: re (kib)
This commit is contained in:
parent
061bbaf7e7
commit
334107b91b
@ -349,7 +349,7 @@ static inline int
|
||||
sigdeferstop(int mode)
|
||||
{
|
||||
|
||||
if (mode == SIGDEFERSTOP_NOP)
|
||||
if (__predict_true(mode == SIGDEFERSTOP_NOP))
|
||||
return (SIGDEFERSTOP_VAL_NCHG);
|
||||
return (sigdeferstop_impl(mode));
|
||||
}
|
||||
@ -358,7 +358,7 @@ static inline void
|
||||
sigallowstop(int prev)
|
||||
{
|
||||
|
||||
if (prev == SIGDEFERSTOP_VAL_NCHG)
|
||||
if (__predict_true(prev == SIGDEFERSTOP_VAL_NCHG))
|
||||
return;
|
||||
sigallowstop_impl(prev);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user