summaryrefslogtreecommitdiffstats
path: root/crypto/dh.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-05-24 18:20:31 -0400
committerTheodore Ts'o <tytso@mit.edu>2017-05-24 18:20:31 -0400
commitc41d342b39f15acbdc61948bab0cb3c567ec992a (patch)
treee92f0897e7fce3976672dec51bdf9b5da1839636 /crypto/dh.c
parentd6b975504e7e71fc29fcd14530433e816d7f5aac (diff)
downloadlinux-c41d342b39f15acbdc61948bab0cb3c567ec992a.tar.bz2
ext4: remove redundant check for encrypted file on dio write path
Currently we don't allow direct I/O on encrypted regular files, so in such cases we return 0 early in ext4_direct_IO(). There was also an additional BUG_ON() check in ext4_direct_IO_write(), but it can never be hit because of the earlier check for the exact same condition in ext4_direct_IO(). There was also no matching check on the read path, which made the write path specific check seem very ad-hoc. Just remove the unnecessary BUG_ON(). Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: David Gstir <david@sigma-star.at> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'crypto/dh.c')
0 files changed, 0 insertions, 0 deletions