diff options
author | Anatol Pomozov <anatol.pomozov@gmail.com> | 2012-09-18 19:38:59 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-09-18 19:38:59 +0200 |
commit | c9b92530a723ac5ef8e352885a1862b18f31b2f5 (patch) | |
tree | f58f88720dbf430ee33bee03d978dddf54584c33 /fs/ext4/resize.c | |
parent | ext4: re-enable -o discard functionality in no-journal mode (diff) | |
download | linux-c9b92530a723ac5ef8e352885a1862b18f31b2f5.tar.xz linux-c9b92530a723ac5ef8e352885a1862b18f31b2f5.zip |
ext4: make orphan functions be no-op in no-journal mode
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: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/resize.c')
0 files changed, 0 insertions, 0 deletions