Lines Matching +full:0 +full:- +full:1023
1 // SPDX-License-Identifier: GPL-2.0
5 * 1995 Hans-Joachim Widmaier - Modified for affs.
16 struct page *page = &folio->page; in affs_symlink_read_folio()
18 struct inode *inode = page->mapping->host; in affs_symlink_read_folio()
25 pr_debug("get_link(ino=%lu)\n", inode->i_ino); in affs_symlink_read_folio()
27 bh = affs_bread(inode->i_sb, inode->i_ino); in affs_symlink_read_folio()
30 i = 0; in affs_symlink_read_folio()
31 j = 0; in affs_symlink_read_folio()
32 lf = (struct slink_front *)bh->b_data; in affs_symlink_read_folio()
33 lc = 0; in affs_symlink_read_folio()
35 if (strchr(lf->symname,':')) { /* Handle assign or volume name */ in affs_symlink_read_folio()
36 struct affs_sb_info *sbi = AFFS_SB(inode->i_sb); in affs_symlink_read_folio()
38 spin_lock(&sbi->symlink_lock); in affs_symlink_read_folio()
39 pf = sbi->s_prefix ? sbi->s_prefix : "/"; in affs_symlink_read_folio()
40 while (i < 1023 && (c = pf[i])) in affs_symlink_read_folio()
42 spin_unlock(&sbi->symlink_lock); in affs_symlink_read_folio()
43 while (i < 1023 && lf->symname[j] != ':') in affs_symlink_read_folio()
44 link[i++] = lf->symname[j++]; in affs_symlink_read_folio()
45 if (i < 1023) in affs_symlink_read_folio()
50 while (i < 1023 && (c = lf->symname[j])) { in affs_symlink_read_folio()
59 link[i] = '\0'; in affs_symlink_read_folio()
63 return 0; in affs_symlink_read_folio()
67 return -EIO; in affs_symlink_read_folio()