]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Sep 2012 17:38:59 +0000 (13:38 -0400)
commit9a7b85273b57550d15bc4cf4767578c7b1ca2c88
treef58f88720dbf430ee33bee03d978dddf54584c33
parentee77296f76155d1c5d3495f913a079edbe8253af
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>
fs/ext4/namei.c