aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/segment.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-05-22 17:39:45 -0700
committerMoyster <oysterized@gmail.com>2017-07-21 12:37:34 +0200
commitf59079466dbefd2e15aeb1bf7e24649d883e29ff (patch)
treeeff302559d3a52daee1b93fdb3a7863ead29f045 /fs/f2fs/segment.c
parent2bb4b075cbd88261327be30f954376e06b6465af (diff)
f2fs: don't bother checking for encryption key in ->write_iter()
Since only an open file can be written to, and we only allow open()ing an encrypted file when its key is available, there is no need to check for the key again before permitting each ->write_iter(). This code was also broken in that it wouldn't actually have failed if the key was in fact unavailable. Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: David Gstir <david@sigma-star.at> Acked-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
0 files changed, 0 insertions, 0 deletions