summaryrefslogtreecommitdiff
path: root/crypto/crypto_null.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.com>2022-07-17 07:35:32 +0300
committerJeff Layton <jlayton@kernel.org>2022-07-18 17:01:47 +0300
commitdb4abb4a32ec979ea5deea4d0095fa22ec99a623 (patch)
tree033971c65e29a89b4c8d35ceaa082047be16d0f5 /crypto/crypto_null.c
parent4149be7bda7e1b922896599dd9cee7a3ed8cf38b (diff)
downloadlinux-db4abb4a32ec979ea5deea4d0095fa22ec99a623.tar.xz
fs/lock: Rearrange ops in flock syscall.
The previous patch added flock_translate_cmd() in flock syscall. The test and the other one for LOCK_MAND do not depend on struct fd and are cheaper, so we can put them at the top and defer fdget() after that. Also, we can remove the unlock variable and use type instead. While at it, we fix this checkpatch error. CHECK: spaces preferred around that '|' (ctx:VxV) #45: FILE: fs/locks.c:2099: + if (type != F_UNLCK && !(f.file->f_mode & (FMODE_READ|FMODE_WRITE))) ^ Finally, we can move the can_sleep part just before we use it. Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'crypto/crypto_null.c')
0 files changed, 0 insertions, 0 deletions