Lines Matching +full:0 +full:- +full:1023
1 // SPDX-License-Identifier: GPL-2.0
5 * 1995 Hans-Joachim Widmaier - Modified for affs.
17 struct inode *inode = page->mapping->host; in affs_symlink_readpage()
24 pr_debug("get_link(ino=%lu)\n", inode->i_ino); in affs_symlink_readpage()
26 bh = affs_bread(inode->i_sb, inode->i_ino); in affs_symlink_readpage()
29 i = 0; in affs_symlink_readpage()
30 j = 0; in affs_symlink_readpage()
31 lf = (struct slink_front *)bh->b_data; in affs_symlink_readpage()
32 lc = 0; in affs_symlink_readpage()
34 if (strchr(lf->symname,':')) { /* Handle assign or volume name */ in affs_symlink_readpage()
35 struct affs_sb_info *sbi = AFFS_SB(inode->i_sb); in affs_symlink_readpage()
37 spin_lock(&sbi->symlink_lock); in affs_symlink_readpage()
38 pf = sbi->s_prefix ? sbi->s_prefix : "/"; in affs_symlink_readpage()
39 while (i < 1023 && (c = pf[i])) in affs_symlink_readpage()
41 spin_unlock(&sbi->symlink_lock); in affs_symlink_readpage()
42 while (i < 1023 && lf->symname[j] != ':') in affs_symlink_readpage()
43 link[i++] = lf->symname[j++]; in affs_symlink_readpage()
44 if (i < 1023) in affs_symlink_readpage()
49 while (i < 1023 && (c = lf->symname[j])) { in affs_symlink_readpage()
58 link[i] = '\0'; in affs_symlink_readpage()
62 return 0; in affs_symlink_readpage()
66 return -EIO; in affs_symlink_readpage()