diff options
| author | Eric Biggers <[email protected]> | 2017-05-24 22:20:31 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2017-05-24 22:20:31 +0000 |
| commit | c41d342b39f15acbdc61948bab0cb3c567ec992a (patch) | |
| tree | e92f0897e7fce3976672dec51bdf9b5da1839636 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | ext4: remove unused d_name argument from ext4_search_dir() et al. (diff) | |
| download | kernel-c41d342b39f15acbdc61948bab0cb3c567ec992a.tar.gz kernel-c41d342b39f15acbdc61948bab0cb3c567ec992a.zip | |
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 <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Reviewed-by: David Gstir <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
