secno 964 drivers/staging/exfat/exfat.h int bdev_read(struct super_block *sb, sector_t secno, secno 966 drivers/staging/exfat/exfat.h int bdev_write(struct super_block *sb, sector_t secno, secno 33 drivers/staging/exfat/exfat_blkdev.c int bdev_read(struct super_block *sb, sector_t secno, struct buffer_head **bh, secno 53 drivers/staging/exfat/exfat_blkdev.c *bh = __bread(sb->s_bdev, secno, secno 56 drivers/staging/exfat/exfat_blkdev.c *bh = __getblk(sb->s_bdev, secno, secno 68 drivers/staging/exfat/exfat_blkdev.c int bdev_write(struct super_block *sb, sector_t secno, struct buffer_head *bh, secno 86 drivers/staging/exfat/exfat_blkdev.c if (secno == bh->b_blocknr) { secno 96 drivers/staging/exfat/exfat_blkdev.c bh2 = __getblk(sb->s_bdev, secno, count); secno 226 fs/f2fs/gc.c unsigned int secno; secno 233 fs/f2fs/gc.c for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) { secno 234 fs/f2fs/gc.c if (sec_usage_check(sbi, secno)) secno 236 fs/f2fs/gc.c clear_bit(secno, dirty_i->victim_secmap); secno 237 fs/f2fs/gc.c return GET_SEG_FROM_SEC(sbi, secno); secno 245 fs/f2fs/gc.c unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); secno 246 fs/f2fs/gc.c unsigned int start = GET_SEG_FROM_SEC(sbi, secno); secno 313 fs/f2fs/gc.c unsigned int secno, last_victim; secno 395 fs/f2fs/gc.c secno = GET_SEC_FROM_SEG(sbi, segno); secno 397 fs/f2fs/gc.c if (sec_usage_check(sbi, secno)) secno 404 fs/f2fs/gc.c if (gc_type == BG_GC && test_bit(secno, dirty_i->victim_secmap)) secno 429 fs/f2fs/gc.c secno = GET_SEC_FROM_SEG(sbi, p.min_segno); secno 431 fs/f2fs/gc.c sbi->cur_victim_sec = secno; secno 433 fs/f2fs/gc.c set_bit(secno, dirty_i->victim_secmap); secno 1940 fs/f2fs/segment.c unsigned int secno, start_segno; secno 1980 fs/f2fs/segment.c secno = GET_SEC_FROM_SEG(sbi, start); secno 1981 fs/f2fs/segment.c start_segno = GET_SEG_FROM_SEC(sbi, secno); secno 1982 fs/f2fs/segment.c if (!IS_CURSEC(sbi, secno) && secno 2377 fs/f2fs/segment.c unsigned int segno, secno, zoneno; secno 2395 fs/f2fs/segment.c secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); secno 2396 fs/f2fs/segment.c if (secno >= MAIN_SECS(sbi)) { secno 2398 fs/f2fs/segment.c secno = find_next_zero_bit(free_i->free_secmap, secno 2400 fs/f2fs/segment.c f2fs_bug_on(sbi, secno >= MAIN_SECS(sbi)); secno 2419 fs/f2fs/segment.c secno = left_start; secno 2421 fs/f2fs/segment.c segno = GET_SEG_FROM_SEC(sbi, secno); secno 2422 fs/f2fs/segment.c zoneno = GET_ZONE_FROM_SEC(sbi, secno); secno 39 fs/f2fs/segment.h #define IS_CURSEC(sbi, secno) \ secno 40 fs/f2fs/segment.h (((secno) == CURSEG_I(sbi, CURSEG_HOT_DATA)->segno / \ secno 42 fs/f2fs/segment.h ((secno) == CURSEG_I(sbi, CURSEG_WARM_DATA)->segno / \ secno 44 fs/f2fs/segment.h ((secno) == CURSEG_I(sbi, CURSEG_COLD_DATA)->segno / \ secno 46 fs/f2fs/segment.h ((secno) == CURSEG_I(sbi, CURSEG_HOT_NODE)->segno / \ secno 48 fs/f2fs/segment.h ((secno) == CURSEG_I(sbi, CURSEG_WARM_NODE)->segno / \ secno 50 fs/f2fs/segment.h ((secno) == CURSEG_I(sbi, CURSEG_COLD_NODE)->segno / \ secno 92 fs/f2fs/segment.h #define GET_SEG_FROM_SEC(sbi, secno) \ secno 93 fs/f2fs/segment.h ((secno) * (sbi)->segs_per_sec) secno 94 fs/f2fs/segment.h #define GET_ZONE_FROM_SEC(sbi, secno) \ secno 95 fs/f2fs/segment.h ((secno) / (sbi)->secs_per_zone) secno 417 fs/f2fs/segment.h unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); secno 418 fs/f2fs/segment.h unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); secno 428 fs/f2fs/segment.h clear_bit(secno, free_i->free_secmap); secno 438 fs/f2fs/segment.h unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); secno 442 fs/f2fs/segment.h if (!test_and_set_bit(secno, free_i->free_secmap)) secno 450 fs/f2fs/segment.h unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); secno 451 fs/f2fs/segment.h unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); secno 458 fs/f2fs/segment.h if (IS_CURSEC(sbi, secno)) secno 463 fs/f2fs/segment.h if (test_and_clear_bit(secno, free_i->free_secmap)) secno 475 fs/f2fs/segment.h unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); secno 480 fs/f2fs/segment.h if (!test_and_set_bit(secno, free_i->free_secmap)) secno 802 fs/f2fs/segment.h static inline bool sec_usage_check(struct f2fs_sb_info *sbi, unsigned int secno) secno 804 fs/f2fs/segment.h if (IS_CURSEC(sbi, secno) || (sbi->cur_victim_sec == secno)) secno 12 fs/hpfs/alloc.c static void hpfs_claim_alloc(struct super_block *s, secno sec) secno 25 fs/hpfs/alloc.c static void hpfs_claim_free(struct super_block *s, secno sec) secno 38 fs/hpfs/alloc.c static void hpfs_claim_dirband_alloc(struct super_block *s, secno sec) secno 51 fs/hpfs/alloc.c static void hpfs_claim_dirband_free(struct super_block *s, secno sec) secno 69 fs/hpfs/alloc.c static int chk_if_allocated(struct super_block *s, secno sec, char *msg) secno 100 fs/hpfs/alloc.c int hpfs_chk_sectors(struct super_block *s, secno start, int len, char *msg) secno 115 fs/hpfs/alloc.c static secno alloc_in_bmp(struct super_block *s, secno near, unsigned n, unsigned forward) secno 124 fs/hpfs/alloc.c secno ret = 0; secno 203 fs/hpfs/alloc.c secno hpfs_alloc_sector(struct super_block *s, secno near, unsigned n, int forward) secno 205 fs/hpfs/alloc.c secno sec; secno 277 fs/hpfs/alloc.c static secno alloc_in_dirband(struct super_block *s, secno near) secno 280 fs/hpfs/alloc.c secno sec; secno 296 fs/hpfs/alloc.c int hpfs_alloc_if_possible(struct super_block *s, secno sec) secno 315 fs/hpfs/alloc.c void hpfs_free_sectors(struct super_block *s, secno sec, unsigned n) secno 428 fs/hpfs/alloc.c struct dnode *hpfs_alloc_dnode(struct super_block *s, secno near, secno 454 fs/hpfs/alloc.c struct fnode *hpfs_alloc_fnode(struct super_block *s, secno near, fnode_secno *fno, secno 471 fs/hpfs/alloc.c struct anode *hpfs_alloc_anode(struct super_block *s, secno near, anode_secno *ano, secno 503 fs/hpfs/alloc.c static int do_trim(struct super_block *s, secno start, unsigned len, secno limit_start, secno limit_end, unsigned minlen, unsigned *result) secno 506 fs/hpfs/alloc.c secno end; secno 14 fs/hpfs/anode.c secno hpfs_bplus_lookup(struct super_block *s, struct inode *inode, secno 61 fs/hpfs/anode.c secno hpfs_add_sector_to_btree(struct super_block *s, secno node, int fnod, unsigned fsecno) secno 67 fs/hpfs/anode.c secno se; secno 330 fs/hpfs/anode.c static secno anode_lookup(struct super_block *s, anode_secno a, unsigned sec) secno 338 fs/hpfs/anode.c int hpfs_ea_read(struct super_block *s, secno a, int ano, unsigned pos, secno 343 fs/hpfs/anode.c secno sec; secno 361 fs/hpfs/anode.c int hpfs_ea_write(struct super_block *s, secno a, int ano, unsigned pos, secno 366 fs/hpfs/anode.c secno sec; secno 385 fs/hpfs/anode.c void hpfs_ea_remove(struct super_block *s, secno a, int ano, unsigned len) secno 399 fs/hpfs/anode.c void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs) secno 14 fs/hpfs/buffer.c secno hpfs_search_hotfix_map(struct super_block *s, secno sec) secno 26 fs/hpfs/buffer.c unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n) secno 38 fs/hpfs/buffer.c void hpfs_prefetch_sectors(struct super_block *s, unsigned secno, int n) secno 43 fs/hpfs/buffer.c if (n <= 0 || unlikely(secno >= hpfs_sb(s)->sb_fs_size)) secno 46 fs/hpfs/buffer.c if (unlikely(hpfs_search_hotfix_map_for_range(s, secno, n) != n)) secno 49 fs/hpfs/buffer.c bh = sb_find_get_block(s, secno); secno 60 fs/hpfs/buffer.c if (unlikely(secno >= hpfs_sb(s)->sb_fs_size)) secno 62 fs/hpfs/buffer.c sb_breadahead(s, secno); secno 63 fs/hpfs/buffer.c secno++; secno 71 fs/hpfs/buffer.c void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp, secno 78 fs/hpfs/buffer.c hpfs_prefetch_sectors(s, secno, ahead); secno 82 fs/hpfs/buffer.c *bhp = bh = sb_bread(s, hpfs_search_hotfix_map(s, secno)); secno 93 fs/hpfs/buffer.c void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp) secno 102 fs/hpfs/buffer.c if ((*bhp = bh = sb_getblk(s, hpfs_search_hotfix_map(s, secno))) != NULL) { secno 114 fs/hpfs/buffer.c void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh, secno 123 fs/hpfs/buffer.c if (secno & 3) { secno 128 fs/hpfs/buffer.c hpfs_prefetch_sectors(s, secno, 4 + ahead); secno 130 fs/hpfs/buffer.c if (!hpfs_map_sector(s, secno + 0, &qbh->bh[0], 0)) goto bail0; secno 131 fs/hpfs/buffer.c if (!hpfs_map_sector(s, secno + 1, &qbh->bh[1], 0)) goto bail1; secno 132 fs/hpfs/buffer.c if (!hpfs_map_sector(s, secno + 2, &qbh->bh[2], 0)) goto bail2; secno 133 fs/hpfs/buffer.c if (!hpfs_map_sector(s, secno + 3, &qbh->bh[3], 0)) goto bail3; secno 168 fs/hpfs/buffer.c void *hpfs_get_4sectors(struct super_block *s, unsigned secno, secno 175 fs/hpfs/buffer.c if (secno & 3) { secno 180 fs/hpfs/buffer.c if (!hpfs_get_sector(s, secno + 0, &qbh->bh[0])) goto bail0; secno 181 fs/hpfs/buffer.c if (!hpfs_get_sector(s, secno + 1, &qbh->bh[1])) goto bail1; secno 182 fs/hpfs/buffer.c if (!hpfs_get_sector(s, secno + 2, &qbh->bh[2])) goto bail2; secno 183 fs/hpfs/buffer.c if (!hpfs_get_sector(s, secno + 3, &qbh->bh[3])) goto bail3; secno 175 fs/hpfs/dnode.c unsigned namelen, secno down_ptr) secno 433 fs/hpfs/dnode.c static secno move_to_top(struct inode *i, dnode_secno from, dnode_secno to) secno 15 fs/hpfs/ea.c void hpfs_ea_ext_remove(struct super_block *s, secno a, int ano, unsigned len) secno 51 fs/hpfs/ea.c static char *get_indirect_ea(struct super_block *s, int ano, secno a, int size) secno 66 fs/hpfs/ea.c static void set_indirect_ea(struct super_block *s, int ano, secno a, secno 79 fs/hpfs/ea.c secno a; secno 135 fs/hpfs/ea.c secno a; secno 197 fs/hpfs/ea.c secno a; secno 268 fs/hpfs/ea.c secno n; secno 289 fs/hpfs/ea.c secno q = hpfs_alloc_sector(s, fno, 1, 0); secno 316 fs/hpfs/ea.c secno new_sec; secno 39 fs/hpfs/file.c static secno hpfs_bmap(struct inode *inode, unsigned file_secno, unsigned *n_secs) secno 80 fs/hpfs/file.c secno s; secno 31 fs/hpfs/hpfs.h typedef secno dnode_secno; /* sector number of a dnode */ secno 32 fs/hpfs/hpfs.h typedef secno fnode_secno; /* sector number of an fnode */ secno 33 fs/hpfs/hpfs.h typedef secno anode_secno; /* sector number of an anode */ secno 93 fs/hpfs/hpfs_fn.h secno hotfix_from[256]; secno 94 fs/hpfs/hpfs_fn.h secno hotfix_to[256]; secno 155 fs/hpfs/hpfs_fn.h static inline secno ea_sec(struct extended_attribute *ea) secno 160 fs/hpfs/hpfs_fn.h static inline secno ea_len(struct extended_attribute *ea) secno 170 fs/hpfs/hpfs_fn.h static inline unsigned de_size(int namelen, secno down_ptr) secno 200 fs/hpfs/hpfs_fn.h int hpfs_chk_sectors(struct super_block *, secno, int, char *); secno 201 fs/hpfs/hpfs_fn.h secno hpfs_alloc_sector(struct super_block *, secno, unsigned, int); secno 202 fs/hpfs/hpfs_fn.h int hpfs_alloc_if_possible(struct super_block *, secno); secno 203 fs/hpfs/hpfs_fn.h void hpfs_free_sectors(struct super_block *, secno, unsigned); secno 205 fs/hpfs/hpfs_fn.h void hpfs_free_dnode(struct super_block *, secno); secno 206 fs/hpfs/hpfs_fn.h struct dnode *hpfs_alloc_dnode(struct super_block *, secno, dnode_secno *, struct quad_buffer_head *); secno 207 fs/hpfs/hpfs_fn.h struct fnode *hpfs_alloc_fnode(struct super_block *, secno, fnode_secno *, struct buffer_head **); secno 208 fs/hpfs/hpfs_fn.h struct anode *hpfs_alloc_anode(struct super_block *, secno, anode_secno *, struct buffer_head **); secno 213 fs/hpfs/hpfs_fn.h secno hpfs_bplus_lookup(struct super_block *, struct inode *, struct bplus_header *, unsigned, struct buffer_head *); secno 214 fs/hpfs/hpfs_fn.h secno hpfs_add_sector_to_btree(struct super_block *, secno, int, unsigned); secno 216 fs/hpfs/hpfs_fn.h int hpfs_ea_read(struct super_block *, secno, int, unsigned, unsigned, char *); secno 217 fs/hpfs/hpfs_fn.h int hpfs_ea_write(struct super_block *, secno, int, unsigned, unsigned, const char *); secno 218 fs/hpfs/hpfs_fn.h void hpfs_ea_remove(struct super_block *, secno, int, unsigned); secno 219 fs/hpfs/hpfs_fn.h void hpfs_truncate_btree(struct super_block *, secno, int, unsigned); secno 224 fs/hpfs/hpfs_fn.h secno hpfs_search_hotfix_map(struct super_block *s, secno sec); secno 225 fs/hpfs/hpfs_fn.h unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n); secno 248 fs/hpfs/hpfs_fn.h const unsigned char *, unsigned, secno); secno 263 fs/hpfs/hpfs_fn.h void hpfs_ea_ext_remove(struct super_block *, secno, int, unsigned); secno 292 fs/hpfs/hpfs_fn.h unsigned char *hpfs_load_code_page(struct super_block *, secno); secno 293 fs/hpfs/hpfs_fn.h __le32 *hpfs_load_bitmap_directory(struct super_block *, secno bmp); secno 20 fs/hpfs/map.c secno sec; secno 57 fs/hpfs/map.c unsigned char *hpfs_load_code_page(struct super_block *s, secno cps) secno 60 fs/hpfs/map.c secno cpds; secno 112 fs/hpfs/map.c __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) secno 256 fs/hpfs/map.c struct dnode *hpfs_map_dnode(struct super_block *s, unsigned secno, secno 261 fs/hpfs/map.c if (hpfs_chk_sectors(s, secno, 4, "dnode")) return NULL; secno 262 fs/hpfs/map.c if (secno & 3) { secno 263 fs/hpfs/map.c hpfs_error(s, "dnode %08x not byte-aligned", secno); secno 267 fs/hpfs/map.c if ((dnode = hpfs_map_4sectors(s, secno, qbh, DNODE_RD_AHEAD))) secno 273 fs/hpfs/map.c hpfs_error(s, "bad magic on dnode %08x", secno); secno 276 fs/hpfs/map.c if (le32_to_cpu(dnode->self) != secno) secno 277 fs/hpfs/map.c hpfs_error(s, "bad self pointer on dnode %08x self = %08x", secno, le32_to_cpu(dnode->self)); secno 281 fs/hpfs/map.c hpfs_error(s, "dnode %08x has first_free == %08x", secno, le32_to_cpu(dnode->first_free)); secno 287 fs/hpfs/map.c hpfs_error(s, "bad dirent size in dnode %08x, dirent %03x, last %03x", secno, p, pp); secno 292 fs/hpfs/map.c hpfs_error(s, "namelen does not match dirent size in dnode %08x, dirent %03x, last %03x", secno, p, pp); secno 298 fs/hpfs/map.c hpfs_error(s, "bad down pointer in dnode %08x, dirent %03x, last %03x", secno, p, pp); secno 305 fs/hpfs/map.c hpfs_error(s, "size on last dirent does not match first_free; dnode %08x", secno); secno 309 fs/hpfs/map.c hpfs_error(s, "dnode %08x does not end with \\377 entry", secno); secno 314 fs/hpfs/map.c secno); secno 133 fs/hpfs/super.c static unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno) secno 139 fs/hpfs/super.c bits = hpfs_map_4sectors(s, secno, &qbh, 0); secno 210 fs/hpfs/super.c secno n_trimmed;