Symbol: secno
fs/f2fs/gc.c
351
unsigned int secno;
fs/f2fs/gc.c
358
for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) {
fs/f2fs/gc.c
359
if (sec_usage_check(sbi, secno))
fs/f2fs/gc.c
361
clear_bit(secno, dirty_i->victim_secmap);
fs/f2fs/gc.c
362
return GET_SEG_FROM_SEC(sbi, secno);
fs/f2fs/gc.c
722
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/gc.c
726
if (!test_and_set_bit(secno, dirty_i->pinned_secmap))
fs/f2fs/gc.c
737
unsigned int secno)
fs/f2fs/gc.c
741
test_bit(secno, dirty_i->pinned_secmap);
fs/f2fs/gc.c
782
unsigned int secno, last_victim;
fs/f2fs/gc.c
889
secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/gc.c
891
if (sec_usage_check(sbi, secno))
fs/f2fs/gc.c
914
if (gc_type == BG_GC && test_bit(secno, dirty_i->victim_secmap))
fs/f2fs/gc.c
917
if (gc_type == FG_GC && f2fs_section_is_pinned(dirty_i, secno))
fs/f2fs/gc.c
961
secno = GET_SEC_FROM_SEG(sbi, p.min_segno);
fs/f2fs/gc.c
963
sbi->cur_victim_sec = secno;
fs/f2fs/gc.c
965
set_bit(secno, dirty_i->victim_secmap);
fs/f2fs/segment.c
2176
unsigned int secno, start_segno;
fs/f2fs/segment.c
2222
secno = GET_SEC_FROM_SEG(sbi, start);
fs/f2fs/segment.c
2223
start_segno = GET_SEG_FROM_SEC(sbi, secno);
fs/f2fs/segment.c
2224
if (!is_cursec(sbi, secno) &&
fs/f2fs/segment.c
2779
unsigned int segno, secno, zoneno;
fs/f2fs/segment.c
2834
secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint);
fs/f2fs/segment.c
2837
if (secno >= MAIN_SECS(sbi) && f2fs_sb_has_blkzoned(sbi)) {
fs/f2fs/segment.c
2841
secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint);
fs/f2fs/segment.c
2843
secno = find_first_zero_bit(free_i->free_secmap,
fs/f2fs/segment.c
2845
if (secno >= MAIN_SECS(sbi)) {
fs/f2fs/segment.c
2853
if (secno >= MAIN_SECS(sbi)) {
fs/f2fs/segment.c
2854
secno = find_first_zero_bit(free_i->free_secmap,
fs/f2fs/segment.c
2856
if (secno >= MAIN_SECS(sbi)) {
fs/f2fs/segment.c
2862
segno = GET_SEG_FROM_SEC(sbi, secno);
fs/f2fs/segment.c
2863
zoneno = GET_ZONE_FROM_SEC(sbi, secno);
fs/f2fs/segment.c
5160
unsigned int segno = 0, offset = 0, secno;
fs/f2fs/segment.c
5188
secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.c
5192
if (is_cursec(sbi, secno))
fs/f2fs/segment.c
5194
set_bit(secno, dirty_i->dirty_secmap);
fs/f2fs/segment.c
5584
unsigned int secno;
fs/f2fs/segment.c
5589
secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.c
5591
sec_start_blkaddr = START_BLOCK(sbi, GET_SEG_FROM_SEC(sbi, secno));
fs/f2fs/segment.c
5641
unsigned int secno = 0, start = 0;
fs/f2fs/segment.c
5646
secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.c
5647
start = GET_SEG_FROM_SEC(sbi, secno);
fs/f2fs/segment.c
795
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.c
804
if (!is_cursec(sbi, secno))
fs/f2fs/segment.c
805
set_bit(secno, dirty_i->dirty_secmap);
fs/f2fs/segment.c
835
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.c
839
clear_bit(secno, dirty_i->dirty_secmap);
fs/f2fs/segment.c
843
if (!is_cursec(sbi, secno))
fs/f2fs/segment.c
844
set_bit(secno, dirty_i->dirty_secmap);
fs/f2fs/segment.h
312
static inline bool is_cursec(struct f2fs_sb_info *sbi, unsigned int secno)
fs/f2fs/segment.h
317
if (secno == GET_SEC_FROM_SEG(sbi, CURSEG_I(sbi, i)->segno))
fs/f2fs/segment.h
362
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.h
363
unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
fs/f2fs/segment.h
379
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.h
380
unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
fs/f2fs/segment.h
394
blocks, get_sec_entry(sbi, segno)->ckpt_valid_blocks, secno);
fs/f2fs/segment.h
469
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.h
470
unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
fs/f2fs/segment.h
480
clear_bit(secno, free_i->free_secmap);
fs/f2fs/segment.h
490
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.h
494
if (!test_and_set_bit(secno, free_i->free_secmap))
fs/f2fs/segment.h
502
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.h
503
unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
fs/f2fs/segment.h
514
if (!inmem && is_cursec(sbi, secno))
fs/f2fs/segment.h
523
ret = test_and_clear_bit(secno, free_i->free_secmap);
fs/f2fs/segment.h
529
if (GET_SEC_FROM_SEG(sbi, sbi->next_victim_seg[BG_GC]) == secno)
fs/f2fs/segment.h
531
if (GET_SEC_FROM_SEG(sbi, sbi->next_victim_seg[FG_GC]) == secno)
fs/f2fs/segment.h
542
unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
fs/f2fs/segment.h
547
if (!test_and_set_bit(secno, free_i->free_secmap))
fs/f2fs/segment.h
86
#define GET_SEG_FROM_SEC(sbi, secno) \
fs/f2fs/segment.h
87
((secno) * SEGS_PER_SEC(sbi))
fs/f2fs/segment.h
88
#define GET_ZONE_FROM_SEC(sbi, secno) \
fs/f2fs/segment.h
89
(((secno) == -1) ? -1 : (secno) / (sbi)->secs_per_zone)
fs/f2fs/segment.h
979
static inline bool sec_usage_check(struct f2fs_sb_info *sbi, unsigned int secno)
fs/f2fs/segment.h
981
if (is_cursec(sbi, secno) || (sbi->cur_victim_sec == secno))
fs/hpfs/alloc.c
100
int hpfs_chk_sectors(struct super_block *s, secno start, int len, char *msg)
fs/hpfs/alloc.c
115
static secno alloc_in_bmp(struct super_block *s, secno near, unsigned n, unsigned forward)
fs/hpfs/alloc.c
12
static void hpfs_claim_alloc(struct super_block *s, secno sec)
fs/hpfs/alloc.c
124
secno ret = 0;
fs/hpfs/alloc.c
203
secno hpfs_alloc_sector(struct super_block *s, secno near, unsigned n, int forward)
fs/hpfs/alloc.c
205
secno sec;
fs/hpfs/alloc.c
25
static void hpfs_claim_free(struct super_block *s, secno sec)
fs/hpfs/alloc.c
277
static secno alloc_in_dirband(struct super_block *s, secno near)
fs/hpfs/alloc.c
280
secno sec;
fs/hpfs/alloc.c
296
int hpfs_alloc_if_possible(struct super_block *s, secno sec)
fs/hpfs/alloc.c
315
void hpfs_free_sectors(struct super_block *s, secno sec, unsigned n)
fs/hpfs/alloc.c
38
static void hpfs_claim_dirband_alloc(struct super_block *s, secno sec)
fs/hpfs/alloc.c
428
struct dnode *hpfs_alloc_dnode(struct super_block *s, secno near,
fs/hpfs/alloc.c
454
struct fnode *hpfs_alloc_fnode(struct super_block *s, secno near, fnode_secno *fno,
fs/hpfs/alloc.c
471
struct anode *hpfs_alloc_anode(struct super_block *s, secno near, anode_secno *ano,
fs/hpfs/alloc.c
503
static int do_trim(struct super_block *s, secno start, unsigned len, secno limit_start, secno limit_end, unsigned minlen, unsigned *result)
fs/hpfs/alloc.c
506
secno end;
fs/hpfs/alloc.c
51
static void hpfs_claim_dirband_free(struct super_block *s, secno sec)
fs/hpfs/alloc.c
69
static int chk_if_allocated(struct super_block *s, secno sec, char *msg)
fs/hpfs/anode.c
14
secno hpfs_bplus_lookup(struct super_block *s, struct inode *inode,
fs/hpfs/anode.c
331
static secno anode_lookup(struct super_block *s, anode_secno a, unsigned sec)
fs/hpfs/anode.c
339
int hpfs_ea_read(struct super_block *s, secno a, int ano, unsigned pos,
fs/hpfs/anode.c
344
secno sec;
fs/hpfs/anode.c
362
int hpfs_ea_write(struct super_block *s, secno a, int ano, unsigned pos,
fs/hpfs/anode.c
367
secno sec;
fs/hpfs/anode.c
386
void hpfs_ea_remove(struct super_block *s, secno a, int ano, unsigned len)
fs/hpfs/anode.c
400
void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs)
fs/hpfs/anode.c
61
secno hpfs_add_sector_to_btree(struct super_block *s, secno node, int fnod, unsigned fsecno)
fs/hpfs/anode.c
67
secno se;
fs/hpfs/buffer.c
102
if ((*bhp = bh = sb_getblk(s, hpfs_search_hotfix_map(s, secno))) != NULL) {
fs/hpfs/buffer.c
114
void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh,
fs/hpfs/buffer.c
123
if (secno & 3) {
fs/hpfs/buffer.c
128
hpfs_prefetch_sectors(s, secno, 4 + ahead);
fs/hpfs/buffer.c
130
if (!hpfs_map_sector(s, secno + 0, &qbh->bh[0], 0)) goto bail0;
fs/hpfs/buffer.c
131
if (!hpfs_map_sector(s, secno + 1, &qbh->bh[1], 0)) goto bail1;
fs/hpfs/buffer.c
132
if (!hpfs_map_sector(s, secno + 2, &qbh->bh[2], 0)) goto bail2;
fs/hpfs/buffer.c
133
if (!hpfs_map_sector(s, secno + 3, &qbh->bh[3], 0)) goto bail3;
fs/hpfs/buffer.c
14
secno hpfs_search_hotfix_map(struct super_block *s, secno sec)
fs/hpfs/buffer.c
168
void *hpfs_get_4sectors(struct super_block *s, unsigned secno,
fs/hpfs/buffer.c
175
if (secno & 3) {
fs/hpfs/buffer.c
180
if (!hpfs_get_sector(s, secno + 0, &qbh->bh[0])) goto bail0;
fs/hpfs/buffer.c
181
if (!hpfs_get_sector(s, secno + 1, &qbh->bh[1])) goto bail1;
fs/hpfs/buffer.c
182
if (!hpfs_get_sector(s, secno + 2, &qbh->bh[2])) goto bail2;
fs/hpfs/buffer.c
183
if (!hpfs_get_sector(s, secno + 3, &qbh->bh[3])) goto bail3;
fs/hpfs/buffer.c
26
unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n)
fs/hpfs/buffer.c
38
void hpfs_prefetch_sectors(struct super_block *s, unsigned secno, int n)
fs/hpfs/buffer.c
43
if (n <= 0 || unlikely(secno >= hpfs_sb(s)->sb_fs_size))
fs/hpfs/buffer.c
46
if (unlikely(hpfs_search_hotfix_map_for_range(s, secno, n) != n))
fs/hpfs/buffer.c
49
bh = sb_find_get_block(s, secno);
fs/hpfs/buffer.c
60
if (unlikely(secno >= hpfs_sb(s)->sb_fs_size))
fs/hpfs/buffer.c
62
sb_breadahead(s, secno);
fs/hpfs/buffer.c
63
secno++;
fs/hpfs/buffer.c
71
void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp,
fs/hpfs/buffer.c
78
hpfs_prefetch_sectors(s, secno, ahead);
fs/hpfs/buffer.c
82
*bhp = bh = sb_bread(s, hpfs_search_hotfix_map(s, secno));
fs/hpfs/buffer.c
93
void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp)
fs/hpfs/dnode.c
175
unsigned namelen, secno down_ptr)
fs/hpfs/dnode.c
433
static secno move_to_top(struct inode *i, dnode_secno from, dnode_secno to)
fs/hpfs/ea.c
135
secno a;
fs/hpfs/ea.c
15
void hpfs_ea_ext_remove(struct super_block *s, secno a, int ano, unsigned len)
fs/hpfs/ea.c
197
secno a;
fs/hpfs/ea.c
268
secno n;
fs/hpfs/ea.c
289
secno q = hpfs_alloc_sector(s, fno, 1, 0);
fs/hpfs/ea.c
316
secno new_sec;
fs/hpfs/ea.c
51
static char *get_indirect_ea(struct super_block *s, int ano, secno a, int size)
fs/hpfs/ea.c
66
static void set_indirect_ea(struct super_block *s, int ano, secno a,
fs/hpfs/ea.c
79
secno a;
fs/hpfs/file.c
128
secno s;
fs/hpfs/file.c
41
static secno hpfs_bmap(struct inode *inode, unsigned file_secno, unsigned *n_secs)
fs/hpfs/file.c
84
secno s;
fs/hpfs/hpfs.h
31
typedef secno dnode_secno; /* sector number of a dnode */
fs/hpfs/hpfs.h
32
typedef secno fnode_secno; /* sector number of an fnode */
fs/hpfs/hpfs.h
33
typedef secno anode_secno; /* sector number of an anode */
fs/hpfs/hpfs_fn.h
155
static inline secno ea_sec(struct extended_attribute *ea)
fs/hpfs/hpfs_fn.h
160
static inline secno ea_len(struct extended_attribute *ea)
fs/hpfs/hpfs_fn.h
170
static inline unsigned de_size(int namelen, secno down_ptr)
fs/hpfs/hpfs_fn.h
200
int hpfs_chk_sectors(struct super_block *, secno, int, char *);
fs/hpfs/hpfs_fn.h
201
secno hpfs_alloc_sector(struct super_block *, secno, unsigned, int);
fs/hpfs/hpfs_fn.h
202
int hpfs_alloc_if_possible(struct super_block *, secno);
fs/hpfs/hpfs_fn.h
203
void hpfs_free_sectors(struct super_block *, secno, unsigned);
fs/hpfs/hpfs_fn.h
205
void hpfs_free_dnode(struct super_block *, secno);
fs/hpfs/hpfs_fn.h
206
struct dnode *hpfs_alloc_dnode(struct super_block *, secno, dnode_secno *, struct quad_buffer_head *);
fs/hpfs/hpfs_fn.h
207
struct fnode *hpfs_alloc_fnode(struct super_block *, secno, fnode_secno *, struct buffer_head **);
fs/hpfs/hpfs_fn.h
208
struct anode *hpfs_alloc_anode(struct super_block *, secno, anode_secno *, struct buffer_head **);
fs/hpfs/hpfs_fn.h
213
secno hpfs_bplus_lookup(struct super_block *, struct inode *, struct bplus_header *, unsigned, struct buffer_head *);
fs/hpfs/hpfs_fn.h
214
secno hpfs_add_sector_to_btree(struct super_block *, secno, int, unsigned);
fs/hpfs/hpfs_fn.h
216
int hpfs_ea_read(struct super_block *, secno, int, unsigned, unsigned, char *);
fs/hpfs/hpfs_fn.h
217
int hpfs_ea_write(struct super_block *, secno, int, unsigned, unsigned, const char *);
fs/hpfs/hpfs_fn.h
218
void hpfs_ea_remove(struct super_block *, secno, int, unsigned);
fs/hpfs/hpfs_fn.h
219
void hpfs_truncate_btree(struct super_block *, secno, int, unsigned);
fs/hpfs/hpfs_fn.h
224
secno hpfs_search_hotfix_map(struct super_block *s, secno sec);
fs/hpfs/hpfs_fn.h
225
unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n);
fs/hpfs/hpfs_fn.h
248
const unsigned char *, unsigned, secno);
fs/hpfs/hpfs_fn.h
263
void hpfs_ea_ext_remove(struct super_block *, secno, int, unsigned);
fs/hpfs/hpfs_fn.h
292
unsigned char *hpfs_load_code_page(struct super_block *, secno);
fs/hpfs/hpfs_fn.h
293
__le32 *hpfs_load_bitmap_directory(struct super_block *, secno bmp);
fs/hpfs/hpfs_fn.h
93
secno hotfix_from[256];
fs/hpfs/hpfs_fn.h
94
secno hotfix_to[256];
fs/hpfs/map.c
112
__le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp)
fs/hpfs/map.c
20
secno sec;
fs/hpfs/map.c
256
struct dnode *hpfs_map_dnode(struct super_block *s, unsigned secno,
fs/hpfs/map.c
261
if (hpfs_chk_sectors(s, secno, 4, "dnode")) return NULL;
fs/hpfs/map.c
262
if (secno & 3) {
fs/hpfs/map.c
263
hpfs_error(s, "dnode %08x not byte-aligned", secno);
fs/hpfs/map.c
267
if ((dnode = hpfs_map_4sectors(s, secno, qbh, DNODE_RD_AHEAD)))
fs/hpfs/map.c
273
hpfs_error(s, "bad magic on dnode %08x", secno);
fs/hpfs/map.c
276
if (le32_to_cpu(dnode->self) != secno)
fs/hpfs/map.c
277
hpfs_error(s, "bad self pointer on dnode %08x self = %08x", secno, le32_to_cpu(dnode->self));
fs/hpfs/map.c
281
hpfs_error(s, "dnode %08x has first_free == %08x", secno, le32_to_cpu(dnode->first_free));
fs/hpfs/map.c
287
hpfs_error(s, "bad dirent size in dnode %08x, dirent %03x, last %03x", secno, p, pp);
fs/hpfs/map.c
292
hpfs_error(s, "namelen does not match dirent size in dnode %08x, dirent %03x, last %03x", secno, p, pp);
fs/hpfs/map.c
298
hpfs_error(s, "bad down pointer in dnode %08x, dirent %03x, last %03x", secno, p, pp);
fs/hpfs/map.c
305
hpfs_error(s, "size on last dirent does not match first_free; dnode %08x", secno);
fs/hpfs/map.c
309
hpfs_error(s, "dnode %08x does not end with \\377 entry", secno);
fs/hpfs/map.c
314
secno);
fs/hpfs/map.c
57
unsigned char *hpfs_load_code_page(struct super_block *s, secno cps)
fs/hpfs/map.c
60
secno cpds;
fs/hpfs/super.c
135
static unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno)
fs/hpfs/super.c
141
bits = hpfs_map_4sectors(s, secno, &qbh, 0);
fs/hpfs/super.c
211
secno n_trimmed;