Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 22 of 22) sorted by relevance

/fs/hpfs/
Dalloc.c12 static void hpfs_claim_alloc(struct super_block *s, secno sec) in hpfs_claim_alloc() argument
17 hpfs_error(s, "free count underflow, allocating sector %08x", sec); in hpfs_claim_alloc()
25 static void hpfs_claim_free(struct super_block *s, secno sec) in hpfs_claim_free() argument
30 hpfs_error(s, "free count overflow, freeing sector %08x", sec); in hpfs_claim_free()
38 static void hpfs_claim_dirband_alloc(struct super_block *s, secno sec) in hpfs_claim_dirband_alloc() argument
43 hpfs_error(s, "dirband free count underflow, allocating sector %08x", sec); in hpfs_claim_dirband_alloc()
51 static void hpfs_claim_dirband_free(struct super_block *s, secno sec) in hpfs_claim_dirband_free() argument
56 hpfs_error(s, "dirband free count overflow, freeing sector %08x", sec); in hpfs_claim_dirband_free()
69 static int chk_if_allocated(struct super_block *s, secno sec, char *msg) in chk_if_allocated() argument
73 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated()
[all …]
Danode.c15 struct bplus_header *btree, unsigned sec, in hpfs_bplus_lookup() argument
26 if (le32_to_cpu(btree->u.internal[i].file_secno) > sec) { in hpfs_bplus_lookup()
33 hpfs_error(s, "sector %08x not found in internal anode %08x", sec, a); in hpfs_bplus_lookup()
38 if (le32_to_cpu(btree->u.external[i].file_secno) <= sec && in hpfs_bplus_lookup()
39 … le32_to_cpu(btree->u.external[i].file_secno) + le32_to_cpu(btree->u.external[i].length) > sec) { in hpfs_bplus_lookup()
40 …a = le32_to_cpu(btree->u.external[i].disk_secno) + sec - le32_to_cpu(btree->u.external[i].file_sec… in hpfs_bplus_lookup()
54 hpfs_error(s, "sector %08x not found in external anode %08x", sec, a); in hpfs_bplus_lookup()
330 static secno anode_lookup(struct super_block *s, anode_secno a, unsigned sec) in anode_lookup() argument
335 return hpfs_bplus_lookup(s, NULL, &anode->btree, sec, bh); in anode_lookup()
343 secno sec; in hpfs_ea_read() local
[all …]
Dbuffer.c14 secno hpfs_search_hotfix_map(struct super_block *s, secno sec) in hpfs_search_hotfix_map() argument
19 if (sbi->hotfix_from[i] == sec) { in hpfs_search_hotfix_map()
23 return sec; in hpfs_search_hotfix_map()
26 unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n) in hpfs_search_hotfix_map_for_range() argument
31 if (sbi->hotfix_from[i] >= sec && sbi->hotfix_from[i] < sec + n) { in hpfs_search_hotfix_map_for_range()
32 n = sbi->hotfix_from[i] - sec; in hpfs_search_hotfix_map_for_range()
Dmap.c20 secno sec; in hpfs_map_bitmap() local
27 sec = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block]); in hpfs_map_bitmap()
28 if (!sec || sec > hpfs_sb(s)->sb_fs_size-4) { in hpfs_map_bitmap()
29 hpfs_error(s, "invalid bitmap block pointer %08x -> %08x at %s", bmp_block, sec, id); in hpfs_map_bitmap()
32 ret = hpfs_map_4sectors(s, sec, qbh, 4); in hpfs_map_bitmap()
Dhpfs_fn.h224 secno hpfs_search_hotfix_map(struct super_block *s, secno sec);
225 unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n);
/fs/reiserfs/
Dxattr_security.c47 struct reiserfs_security_handle *sec) in reiserfs_security_init() argument
52 sec->name = NULL; in reiserfs_security_init()
53 sec->value = NULL; in reiserfs_security_init()
59 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init()
60 &sec->value, &sec->length); in reiserfs_security_init()
65 sec->name = NULL; in reiserfs_security_init()
66 sec->value = NULL; in reiserfs_security_init()
67 sec->length = 0; in reiserfs_security_init()
71 if (sec->length && reiserfs_xattrs_initialized(inode->i_sb)) { in reiserfs_security_init()
73 reiserfs_xattr_nblocks(inode, sec->length); in reiserfs_security_init()
[all …]
Dxattr.h38 struct reiserfs_security_handle *sec);
41 struct reiserfs_security_handle *sec);
42 void reiserfs_security_free(struct reiserfs_security_handle *sec);
104 struct reiserfs_security_handle *sec) in reiserfs_security_init() argument
111 struct reiserfs_security_handle *sec) in reiserfs_security_write() argument
115 static inline void reiserfs_security_free(struct reiserfs_security_handle *sec) in reiserfs_security_free() argument
/fs/exfat/
Dfatent.c14 static int exfat_mirror_bh(struct super_block *sb, sector_t sec, in exfat_mirror_bh() argument
23 sec2 = sec - sbi->FAT1_start_sector + sbi->FAT2_start_sector; in exfat_mirror_bh()
42 sector_t sec; in __exfat_ent_get() local
45 sec = FAT_ENT_OFFSET_SECTOR(sb, loc); in __exfat_ent_get()
48 bh = sb_bread(sb, sec); in __exfat_ent_get()
66 sector_t sec; in exfat_ent_set() local
70 sec = FAT_ENT_OFFSET_SECTOR(sb, loc); in exfat_ent_set()
73 bh = sb_bread(sb, sec); in exfat_ent_set()
80 exfat_mirror_bh(sb, sec, bh); in exfat_ent_set()
Ddir.c678 static int exfat_dir_readahead(struct super_block *sb, sector_t sec) in exfat_dir_readahead() argument
691 if (sec < sbi->data_start_sector) { in exfat_dir_readahead()
693 (unsigned long long)sec, sbi->data_start_sector); in exfat_dir_readahead()
698 if ((sec - sbi->data_start_sector) & (ra_count - 1)) in exfat_dir_readahead()
701 bh = sb_find_get_block(sb, sec); in exfat_dir_readahead()
706 sb_breadahead(sb, (sector_t)(sec + i)); in exfat_dir_readahead()
717 sector_t sec; in exfat_get_dentry() local
724 if (exfat_find_location(sb, p_dir, entry, &sec, &off)) in exfat_get_dentry()
729 exfat_dir_readahead(sb, sec); in exfat_get_dentry()
731 *bh = sb_bread(sb, sec); in exfat_get_dentry()
[all …]
Dexfat_fs.h365 sector_t sec) in exfat_is_last_sector_in_cluster() argument
367 return ((sec - sbi->data_start_sector + 1) & in exfat_is_last_sector_in_cluster()
379 sector_t sec) in exfat_sector_to_cluster() argument
381 return ((sec - sbi->data_start_sector) >> sbi->sect_per_clus_bits) + in exfat_sector_to_cluster()
/fs/isofs/
Dinode.c623 struct iso_supplementary_descriptor *sec = NULL; in isofs_fill_super() local
697 sec = (struct iso_supplementary_descriptor *)vdp; in isofs_fill_super()
698 if (sec->escape[0] == 0x25 && sec->escape[1] == 0x2f) { in isofs_fill_super()
700 if (sec->escape[2] == 0x40) in isofs_fill_super()
702 else if (sec->escape[2] == 0x43) in isofs_fill_super()
704 else if (sec->escape[2] == 0x45) in isofs_fill_super()
714 sec = NULL; in isofs_fill_super()
756 pri = (struct iso_primary_descriptor *) sec; in isofs_fill_super()
831 pri = (struct iso_primary_descriptor *) sec; in isofs_fill_super()
/fs/smb/client/
Dnetmisc.c971 time64_t sec, days; in cnvrtDosUnixTm() local
980 sec = 2 * st->TwoSeconds; in cnvrtDosUnixTm()
982 if ((sec > 59) || (min > 59)) in cnvrtDosUnixTm()
983 cifs_dbg(VFS, "Invalid time min %d sec %lld\n", min, sec); in cnvrtDosUnixTm()
984 sec += (min * 60); in cnvrtDosUnixTm()
985 sec += 60 * 60 * st->Hours; in cnvrtDosUnixTm()
1013 sec += 24 * 60 * 60 * days; in cnvrtDosUnixTm()
1015 ts.tv_sec = sec + offset; in cnvrtDosUnixTm()
/fs/hfs/
Dhfs_fs.h289 #define sb_bread512(sb, sec, data) ({ \ argument
295 __start = (loff_t)(sec) << HFS_SECTOR_SIZE_BITS;\
/fs/jffs2/
Dos-linux.h35 #define ITIME(sec) ((struct timespec64){sec, 0}) argument
/fs/btrfs/
Dioctl.c61 __u64 sec; member
3073 subvol_info->ctime.sec = btrfs_stack_timespec_sec(&root_item->ctime); in btrfs_ioctl_get_subvol_info()
3077 subvol_info->otime.sec = btrfs_stack_timespec_sec(&root_item->otime); in btrfs_ioctl_get_subvol_info()
3081 subvol_info->stime.sec = btrfs_stack_timespec_sec(&root_item->stime); in btrfs_ioctl_get_subvol_info()
3085 subvol_info->rtime.sec = btrfs_stack_timespec_sec(&root_item->rtime); in btrfs_ioctl_get_subvol_info()
4880 sa->rtime.sec = ct.tv_sec; in _btrfs_ioctl_set_received_subvol()
4899 btrfs_set_stack_timespec_sec(&root_item->stime, sa->stime.sec); in _btrfs_ioctl_set_received_subvol()
4901 btrfs_set_stack_timespec_sec(&root_item->rtime, sa->rtime.sec); in _btrfs_ioctl_set_received_subvol()
4948 args64->stime.sec = args32->stime.sec; in btrfs_ioctl_set_received_subvol_32()
4950 args64->rtime.sec = args32->rtime.sec; in btrfs_ioctl_set_received_subvol_32()
[all …]
Dctree.h2028 BTRFS_SETGET_FUNCS(timespec_sec, struct btrfs_timespec, sec, 64);
2030 BTRFS_SETGET_STACK_FUNCS(stack_timespec_sec, struct btrfs_timespec, sec, 64);
/fs/fat/
Ddir.c55 int sec; in fat_dir_readahead() local
66 for (sec = 0; sec < sbi->sec_per_clus; sec++) in fat_dir_readahead()
67 sb_breadahead(sb, phys + sec); in fat_dir_readahead()
/fs/
Dselect.c274 int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec) in poll_select_set_timeout() argument
276 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
282 if (!sec && !nsec) { in poll_select_set_timeout()
/fs/fuse/
Dfuse_i.h1814 static inline u64 time_to_jiffies(u64 sec, u32 nsec) in time_to_jiffies() argument
1816 if (sec || nsec) { in time_to_jiffies()
1818 sec, in time_to_jiffies()
/fs/xfs/libxfs/
Dxfs_format.h446 #define XFS_FSS_TO_BB(mp,sec) ((sec) << (mp)->m_sectbb_log) argument
/fs/ocfs2/
Ddlmglue.c2149 u64 sec = clamp_t(time64_t, spec->tv_sec, 0, 0x3ffffffffull); in ocfs2_pack_timespec() local
2152 res = (sec << OCFS2_SEC_SHIFT) | (nsec & OCFS2_NSEC_MASK); in ocfs2_pack_timespec()
/fs/nfs/
Dnfs4xdr.c4137 __u64 sec; in xdr_decode_nfstime4() local
4139 p = xdr_decode_hyper(p, &sec); in xdr_decode_nfstime4()
4140 t-> tv_sec = sec; in xdr_decode_nfstime4()