tag | line | file | source code |
dep | 31 | fs/xiafs/namei.c | static int xiafs_match(int len, const char * name, struct xiafs_direct * dep) |
dep | 35 | fs/xiafs/namei.c | if (!dep || !dep->d_ino || len > _XIAFS_NAME_LEN) |
dep | 38 | fs/xiafs/namei.c | if (!len && (dep->d_name[0]=='.') && (dep->d_name[1]=='\0')) |
dep | 40 | fs/xiafs/namei.c | if (len != dep->d_name_len) |
dep | 43 | fs/xiafs/namei.c | if (*name++ != dep->d_name[i]) |
dep | 62 | fs/xiafs/namei.c | struct xiafs_direct * dep, * dep_pre; |
dep | 79 | fs/xiafs/namei.c | dep_pre=dep=(struct xiafs_direct *)bh->b_data; |
dep | 80 | fs/xiafs/namei.c | if (!i && (dep->d_rec_len != 12 || !dep->d_ino || |
dep | 81 | fs/xiafs/namei.c | dep->d_name_len != 1 || strcmp(dep->d_name, "."))) { |
dep | 88 | fs/xiafs/namei.c | if (dep->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes || |
dep | 89 | fs/xiafs/namei.c | dep->d_rec_len < 12 || |
dep | 90 | fs/xiafs/namei.c | dep->d_rec_len+(char *)dep > bh->b_data+XIAFS_ZSIZE(inode->i_sb) || |
dep | 91 | fs/xiafs/namei.c | dep->d_name_len + 8 > dep->d_rec_len || dep->d_name_len <= 0 || |
dep | 92 | fs/xiafs/namei.c | dep->d_name[dep->d_name_len] ) { |
dep | 96 | fs/xiafs/namei.c | if (xiafs_match(namelen, name, dep)) { |
dep | 97 | fs/xiafs/namei.c | *res_dir=dep; |
dep | 102 | fs/xiafs/namei.c | pos += dep->d_rec_len; |
dep | 103 | fs/xiafs/namei.c | dep_pre=dep; |
dep | 104 | fs/xiafs/namei.c | dep=(struct xiafs_direct *)(bh->b_data + pos); |
dep | 119 | fs/xiafs/namei.c | struct xiafs_direct * dep; |
dep | 129 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
dep | 133 | fs/xiafs/namei.c | ino = dep->d_ino; |