Commit d910eb98 authored by Anatol Pomozov's avatar Anatol Pomozov Committed by Paul Gortmaker
Browse files

ext4: make orphan functions be no-op in no-journal mode



commit c9b92530 upstream.

Instead of checking whether the handle is valid, we check if journal
is enabled. This avoids taking the s_orphan_lock mutex in all cases
when there is no journal in use, including the error paths where
ext4_orphan_del() is called with a handle set to NULL.

Signed-off-by: default avatarAnatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 823f7ea9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment