aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r--fs/ext4/namei.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index 6ad612c576fc..eefa176f4877 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -1572,6 +1572,8 @@ static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, unsi
struct ext4_dir_entry_2 *de;
struct buffer_head *bh;
+ BUG_ON(irqs_disabled());
+
if (ext4_encrypted_inode(dir)) {
int res = fscrypt_get_encryption_info(dir);