Re: [PATCH v5 04/13] exfat: add directory operations

From: Markus Elfring
Date: Mon Nov 25 2019 - 04:27:52 EST


â
> +int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei,
> + struct exfat_chain *p_dir, struct exfat_uni_name *p_uniname,
> + int num_entries, unsigned int type)
> +{
â
> + unsigned short entry_uniname[16], *uniname = NULL, unichar;

Would you like to reduce the scope for these variables according to an if branch
for the condition âentry_type == TYPE_EXTENDâ?


â
> + struct buffer_head *bh = NULL;

* How do you think about to move the definition for this variable
to the beginning of the for loop?

* Can this pointer initialisation be omitted?

Regards,
Markus