@@ -233,7 +233,7 @@ static void dump_ch(const struct ubifs_ch *ch)
233
233
void ubifs_dump_inode (struct ubifs_info * c , const struct inode * inode )
234
234
{
235
235
const struct ubifs_inode * ui = ubifs_inode (inode );
236
- struct qstr nm = { . name = NULL };
236
+ struct fscrypt_name nm = {0 };
237
237
union ubifs_key key ;
238
238
struct ubifs_dent_node * dent , * pdent = NULL ;
239
239
int count = 2 ;
@@ -289,8 +289,8 @@ void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode)
289
289
pr_err ("\t%d: %s (%s)\n" ,
290
290
count ++ , dent -> name , get_dent_type (dent -> type ));
291
291
292
- nm . name = dent -> name ;
293
- nm . len = le16_to_cpu (dent -> nlen );
292
+ fname_name ( & nm ) = dent -> name ;
293
+ fname_len ( & nm ) = le16_to_cpu (dent -> nlen );
294
294
kfree (pdent );
295
295
pdent = dent ;
296
296
key_read (c , & dent -> key , & key );
@@ -1107,7 +1107,7 @@ int dbg_check_dir(struct ubifs_info *c, const struct inode *dir)
1107
1107
unsigned int nlink = 2 ;
1108
1108
union ubifs_key key ;
1109
1109
struct ubifs_dent_node * dent , * pdent = NULL ;
1110
- struct qstr nm = { . name = NULL };
1110
+ struct fscrypt_name nm = {0 };
1111
1111
loff_t size = UBIFS_INO_NODE_SZ ;
1112
1112
1113
1113
if (!dbg_is_chk_gen (c ))
@@ -1128,9 +1128,9 @@ int dbg_check_dir(struct ubifs_info *c, const struct inode *dir)
1128
1128
return err ;
1129
1129
}
1130
1130
1131
- nm . name = dent -> name ;
1132
- nm . len = le16_to_cpu (dent -> nlen );
1133
- size += CALC_DENT_SIZE (nm . len );
1131
+ fname_name ( & nm ) = dent -> name ;
1132
+ fname_len ( & nm ) = le16_to_cpu (dent -> nlen );
1133
+ size += CALC_DENT_SIZE (fname_len ( & nm ) );
1134
1134
if (dent -> type == UBIFS_ITYPE_DIR )
1135
1135
nlink += 1 ;
1136
1136
kfree (pdent );
0 commit comments