ext4: make orphan functions be no-op in no-journal mode
authorAnatol Pomozov <anatol.pomozov@gmail.com>
Tue, 18 Sep 2012 17:38:59 +0000 (13:38 -0400)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:50 +0000 (18:03 +0200)
commit608194a40b8f76576d538f6e8379261ea92eb2e7
tree2da347e6cdb36c70e64e6d79f3c9dcd17d90225a
parentfbc6164ec2f90b96a753d719c498a96725834ea0
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>
Conflicts:
fs/ext4/namei.c

Change-Id: I734ccb8069fceb12b864e7b9dceb37e27ab94c61
fs/ext4/namei.c