• Home
  • Raw
  • Download

Lines Matching refs:fi

168 	struct fileIdentDesc *fi = NULL;  in udf_find_entry()  local
194 fi = ERR_PTR(-EIO); in udf_find_entry()
209 fi = ERR_PTR(-EIO); in udf_find_entry()
216 fi = ERR_PTR(-ENOMEM); in udf_find_entry()
221 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_find_entry()
223 if (!fi) { in udf_find_entry()
224 fi = ERR_PTR(-EIO); in udf_find_entry()
232 nameptr = fi->fileIdent + liu; in udf_find_entry()
247 fi = ERR_PTR(-ENOMEM); in udf_find_entry()
252 memcpy(nameptr, fi->fileIdent + liu, in udf_find_entry()
278 fi = ERR_PTR(flen); in udf_find_entry()
286 fi = NULL; in udf_find_entry()
296 return fi; in udf_find_entry()
305 struct fileIdentDesc *fi; in udf_lookup() local
310 fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); in udf_lookup()
311 if (IS_ERR(fi)) in udf_lookup()
312 return ERR_CAST(fi); in udf_lookup()
314 if (fi) { in udf_lookup()
336 struct fileIdentDesc *fi = NULL; in udf_add_entry() local
405 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_add_entry()
408 if (!fi) { in udf_add_entry()
420 if (!udf_write_fi(dir, cfi, fi, fibh, NULL, in udf_add_entry()
465 fi = (struct fileIdentDesc *) in udf_add_entry()
474 fi = (struct fileIdentDesc *) in udf_add_entry()
516 fi = (struct fileIdentDesc *)(fibh->sbh->b_data); in udf_add_entry()
518 fi = (struct fileIdentDesc *) in udf_add_entry()
534 if (!udf_write_fi(dir, cfi, fi, fibh, NULL, name)) { in udf_add_entry()
560 fi = NULL; in udf_add_entry()
567 return fi; in udf_add_entry()
570 static int udf_delete_entry(struct inode *inode, struct fileIdentDesc *fi, in udf_delete_entry() argument
579 return udf_write_fi(inode, cfi, fi, fibh, NULL, NULL); in udf_delete_entry()
587 struct fileIdentDesc cfi, *fi; in udf_add_nondir() local
590 fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); in udf_add_nondir()
591 if (unlikely(!fi)) { in udf_add_nondir()
600 udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); in udf_add_nondir()
669 struct fileIdentDesc cfi, *fi; in udf_mkdir() local
681 fi = udf_add_entry(inode, NULL, &fibh, &cfi, &err); in udf_mkdir()
682 if (!fi) { in udf_mkdir()
694 udf_write_fi(inode, &cfi, fi, &fibh, NULL, NULL); in udf_mkdir()
698 fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); in udf_mkdir()
699 if (!fi) { in udf_mkdir()
710 udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); in udf_mkdir()
726 struct fileIdentDesc *fi, cfi; in empty_dir() local
765 fi = udf_fileident_read(dir, &f_pos, &fibh, &cfi, &epos, &eloc, in empty_dir()
767 if (!fi) { in empty_dir()
798 struct fileIdentDesc *fi, cfi; in udf_rmdir() local
802 fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); in udf_rmdir()
803 if (IS_ERR_OR_NULL(fi)) { in udf_rmdir()
804 if (fi) in udf_rmdir()
805 retval = PTR_ERR(fi); in udf_rmdir()
816 retval = udf_delete_entry(dir, fi, &fibh, &cfi); in udf_rmdir()
843 struct fileIdentDesc *fi; in udf_unlink() local
848 fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); in udf_unlink()
850 if (IS_ERR_OR_NULL(fi)) { in udf_unlink()
851 if (fi) in udf_unlink()
852 retval = PTR_ERR(fi); in udf_unlink()
866 retval = udf_delete_entry(dir, fi, &fibh, &cfi); in udf_unlink()
1042 struct fileIdentDesc cfi, *fi; in udf_link() local
1045 fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); in udf_link()
1046 if (!fi) { in udf_link()
1055 udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); in udf_link()