tag | line | file | source code |
dep | 35 | fs/xiafs/namei.c | static int xiafs_match(int len, const char * name, struct xiafs_direct * dep) |
dep | 39 | fs/xiafs/namei.c | if (!dep || !dep->d_ino || len > _XIAFS_NAME_LEN) |
dep | 42 | fs/xiafs/namei.c | if (!len && (dep->d_name[0]=='.') && (dep->d_name[1]=='\0')) |
dep | 44 | fs/xiafs/namei.c | if (len != dep->d_name_len) |
dep | 47 | fs/xiafs/namei.c | if (*name++ != dep->d_name[i]) |
dep | 66 | fs/xiafs/namei.c | struct xiafs_direct * dep, * dep_pre; |
dep | 83 | fs/xiafs/namei.c | dep_pre=dep=(struct xiafs_direct *)bh->b_data; |
dep | 84 | fs/xiafs/namei.c | if (!i && (dep->d_rec_len != 12 || !dep->d_ino || |
dep | 85 | fs/xiafs/namei.c | dep->d_name_len != 1 || strcmp(dep->d_name, "."))) { |
dep | 92 | fs/xiafs/namei.c | if (dep->d_ino > inode->i_sb->u.xiafs_sb.s_ninodes || |
dep | 93 | fs/xiafs/namei.c | dep->d_rec_len < 12 || |
dep | 94 | fs/xiafs/namei.c | dep->d_rec_len+(char *)dep > bh->b_data+XIAFS_ZSIZE(inode->i_sb) || |
dep | 95 | fs/xiafs/namei.c | dep->d_name_len + 8 > dep->d_rec_len || dep->d_name_len <= 0 || |
dep | 96 | fs/xiafs/namei.c | dep->d_name[dep->d_name_len] ) { |
dep | 100 | fs/xiafs/namei.c | if (xiafs_match(namelen, name, dep)) { |
dep | 101 | fs/xiafs/namei.c | *res_dir=dep; |
dep | 106 | fs/xiafs/namei.c | pos += dep->d_rec_len; |
dep | 107 | fs/xiafs/namei.c | dep_pre=dep; |
dep | 108 | fs/xiafs/namei.c | dep=(struct xiafs_direct *)(bh->b_data + pos); |
dep | 123 | fs/xiafs/namei.c | struct xiafs_direct * dep; |
dep | 133 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
dep | 137 | fs/xiafs/namei.c | ino = dep->d_ino; |