Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 32) sorted by relevance

12

/include/linux/
Dsbitmap.h109 struct sbitmap sb; member
155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
162 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free() argument
164 free_percpu(sb->alloc_hint); in sbitmap_free()
165 kfree(sb->map); in sbitmap_free()
166 sb->map = NULL; in sbitmap_free()
177 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
187 int sbitmap_get(struct sbitmap *sb);
204 int sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth);
212 bool sbitmap_any_bit_set(const struct sbitmap *sb);
[all …]
Dquotaops.h17 static inline struct quota_info *sb_dqopt(struct super_block *sb) in sb_dqopt() argument
19 return &sb->s_dquot; in sb_dqopt()
32 #define quota_error(sb, fmt, args...) \ argument
33 __quota_error((sb), __func__, fmt , ## args)
36 void __quota_error(struct super_block *sb, const char *func,
45 struct dquot *dqget(struct super_block *sb, struct kqid qid);
65 int dquot_scan_active(struct super_block *sb,
68 struct dquot *dquot_alloc(struct super_block *sb, int type);
80 int dquot_disable(struct super_block *sb, int type, unsigned int flags);
82 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
[all …]
Dcleancache.h81 static inline void cleancache_init_fs(struct super_block *sb) in cleancache_init_fs() argument
84 __cleancache_init_fs(sb); in cleancache_init_fs()
87 static inline void cleancache_init_shared_fs(struct super_block *sb) in cleancache_init_shared_fs() argument
90 __cleancache_init_shared_fs(sb); in cleancache_init_shared_fs()
120 static inline void cleancache_invalidate_fs(struct super_block *sb) in cleancache_invalidate_fs() argument
123 __cleancache_invalidate_fs(sb); in cleancache_invalidate_fs()
Dbuffer_head.h335 sb_bread(struct super_block *sb, sector_t block) in sb_bread() argument
337 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread()
341 sb_bread_unmovable(struct super_block *sb, sector_t block) in sb_bread_unmovable() argument
343 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable()
347 sb_breadahead(struct super_block *sb, sector_t block) in sb_breadahead() argument
349 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead()
353 sb_breadahead_unmovable(struct super_block *sb, sector_t block) in sb_breadahead_unmovable() argument
355 __breadahead_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_breadahead_unmovable()
359 sb_getblk(struct super_block *sb, sector_t block) in sb_getblk() argument
361 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_getblk()
[all …]
Dexportfs.h201 struct dentry * (*fh_to_dentry)(struct super_block *sb, struct fid *fid,
203 struct dentry * (*fh_to_parent)(struct super_block *sb, struct fid *fid,
210 int (*get_uuid)(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
245 extern struct dentry *generic_fh_to_dentry(struct super_block *sb,
247 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
248 extern struct dentry *generic_fh_to_parent(struct super_block *sb,
250 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
Dnfs_ssc.h28 void (*sco_sb_deactive)(struct super_block *sb);
77 static inline void nfs_do_sb_deactive(struct super_block *sb) in nfs_do_sb_deactive() argument
80 (*nfs_ssc_client_tbl.ssc_nfs_ops->sco_sb_deactive)(sb); in nfs_do_sb_deactive()
Dramfs.h7 struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
10 extern void ramfs_kill_sb(struct super_block *sb);
Dfs_context.h159 int (*fill_super)(struct super_block *sb,
163 int (*fill_super)(struct super_block *sb,
166 int (*fill_super)(struct super_block *sb,
169 int (*fill_super)(struct super_block *sb,
172 int (*fill_super)(struct super_block *sb,
177 int (*fill_super)(struct super_block *sb,
Dquota.h247 extern void mark_info_dirty(struct super_block *sb, int type);
313 …int (*check_quota_file)(struct super_block *sb, int type); /* Detect whether file is in our format…
314 …int (*read_file_info)(struct super_block *sb, int type); /* Read main info about file - called on …
315 int (*write_file_info)(struct super_block *sb, int type); /* Write main info about file */
316 int (*free_file_info)(struct super_block *sb, int type); /* Called on quotaoff() */
320 …int (*get_next_id)(struct super_block *sb, struct kqid *qid); /* Get next ID with existing structu…
342 int (*get_next_id) (struct super_block *sb, struct kqid *qid);
Dfscrypt.h137 const union fscrypt_policy *(*get_dummy_policy)(struct super_block *sb);
158 bool (*has_stable_inodes)(struct super_block *sb);
172 void (*get_ino_and_lblk_bits)(struct super_block *sb,
189 struct block_device **(*get_devices)(struct super_block *sb,
314 int fscrypt_set_test_dummy_encryption(struct super_block *sb, const char *arg,
317 struct super_block *sb);
331 void fscrypt_destroy_keyring(struct super_block *sb);
397 static inline void fscrypt_set_ops(struct super_block *sb, in fscrypt_set_ops() argument
400 sb->s_cop = s_cop; in fscrypt_set_ops()
528 struct super_block *sb) in fscrypt_show_test_dummy_encryption() argument
[all …]
Dkernfs.h386 struct kernfs_root *kernfs_root_from_sb(struct super_block *sb);
387 struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn);
390 struct super_block *sb);
430 const void *kernfs_super_ns(struct super_block *sb);
433 void kernfs_kill_sb(struct super_block *sb);
478 static inline struct kernfs_root *kernfs_root_from_sb(struct super_block *sb) in kernfs_root_from_sb() argument
482 kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn) in kernfs_get_inode() argument
540 static inline const void *kernfs_super_ns(struct super_block *sb) in kernfs_super_ns() argument
548 static inline void kernfs_kill_sb(struct super_block *sb) { } in kernfs_kill_sb() argument
Dfs.h1464 #define sb_has_strict_encoding(sb) \ argument
1465 (sb->s_encoding_flags & SB_ENC_STRICT_MODE_FL)
1749 static inline bool fsuidgid_has_mapping(struct super_block *sb, in fsuidgid_has_mapping() argument
1752 struct user_namespace *fs_userns = sb->s_user_ns; in fsuidgid_has_mapping()
1819 static inline void __sb_end_write(struct super_block *sb, int level) in __sb_end_write() argument
1821 percpu_up_read(sb->s_writers.rw_sem + level-1); in __sb_end_write()
1824 static inline void __sb_start_write(struct super_block *sb, int level) in __sb_start_write() argument
1826 percpu_down_read(sb->s_writers.rw_sem + level - 1); in __sb_start_write()
1829 static inline bool __sb_start_write_trylock(struct super_block *sb, int level) in __sb_start_write_trylock() argument
1831 return percpu_down_read_trylock(sb->s_writers.rw_sem + level - 1); in __sb_start_write_trylock()
[all …]
Dbacking-dev.h140 struct super_block *sb; in inode_to_bdi() local
145 sb = inode->i_sb; in inode_to_bdi()
147 if (sb_is_blkdev_sb(sb)) in inode_to_bdi()
150 return sb->s_bdi; in inode_to_bdi()
Dproc_fs.h70 static inline struct proc_fs_info *proc_sb_info(struct super_block *sb) in proc_sb_info() argument
72 return sb->s_fs_info; in proc_sb_info()
219 static inline struct pid_namespace *proc_pid_ns(struct super_block *sb) in proc_pid_ns() argument
221 return proc_sb_info(sb)->pid_ns; in proc_pid_ns()
Dsecurity.h284 int security_quotactl(int cmds, int type, int id, struct super_block *sb);
296 int security_sb_alloc(struct super_block *sb);
297 void security_sb_delete(struct super_block *sb);
298 void security_sb_free(struct super_block *sb);
301 int security_sb_mnt_opts_compat(struct super_block *sb, void *mnt_opts);
302 int security_sb_remount(struct super_block *sb, void *mnt_opts);
303 int security_sb_kern_mount(struct super_block *sb);
304 int security_sb_show_options(struct seq_file *m, struct super_block *sb);
310 int security_sb_set_mnt_opts(struct super_block *sb,
576 struct super_block *sb) in security_quotactl() argument
[all …]
Dlsm_hook_defs.h46 LSM_HOOK(int, 0, quotactl, int cmds, int type, int id, struct super_block *sb)
61 LSM_HOOK(int, 0, sb_alloc_security, struct super_block *sb)
62 LSM_HOOK(void, LSM_RET_VOID, sb_delete, struct super_block *sb)
63 LSM_HOOK(void, LSM_RET_VOID, sb_free_security, struct super_block *sb)
66 LSM_HOOK(int, 0, sb_mnt_opts_compat, struct super_block *sb, void *mnt_opts)
67 LSM_HOOK(int, 0, sb_remount, struct super_block *sb, void *mnt_opts)
68 LSM_HOOK(int, 0, sb_kern_mount, struct super_block *sb)
69 LSM_HOOK(int, 0, sb_show_options, struct seq_file *m, struct super_block *sb)
76 LSM_HOOK(int, 0, sb_set_mnt_opts, struct super_block *sb, void *mnt_opts,
Dfsnotify_backend.h333 FSNOTIFY_ITER_FUNCS(sb, SB)
419 extern void fsnotify_sb_delete(struct super_block *sb);
610 static inline void fsnotify_sb_delete(struct super_block *sb) in fsnotify_sb_delete() argument
621 static inline void fsnotify_unmount_inodes(struct super_block *sb) in fsnotify_unmount_inodes() argument
Dblkdev.h1380 static inline int sb_issue_discard(struct super_block *sb, sector_t block, in sb_issue_discard() argument
1383 return blkdev_issue_discard(sb->s_bdev, in sb_issue_discard()
1384 block << (sb->s_blocksize_bits - in sb_issue_discard()
1386 nr_blocks << (sb->s_blocksize_bits - in sb_issue_discard()
1390 static inline int sb_issue_zeroout(struct super_block *sb, sector_t block, in sb_issue_zeroout() argument
1393 return blkdev_issue_zeroout(sb->s_bdev, in sb_issue_zeroout()
1394 block << (sb->s_blocksize_bits - in sb_issue_zeroout()
1396 nr_blocks << (sb->s_blocksize_bits - in sb_issue_zeroout()
/include/linux/mtd/
Dsuper.h18 int (*fill_super)(struct super_block *sb,
20 extern void kill_mtd_super(struct super_block *sb);
/include/trace/events/
Dext4.h654 TP_PROTO(struct super_block *sb, unsigned long long blk,
657 TP_ARGS(sb, blk, count),
667 __entry->dev = sb->s_dev;
750 TP_PROTO(struct super_block *sb, struct ext4_prealloc_space *pa),
752 TP_ARGS(sb, pa),
762 __entry->dev = sb->s_dev;
799 TP_PROTO(struct super_block *sb, int needed),
801 TP_ARGS(sb, needed),
810 __entry->dev = sb->s_dev;
983 TP_PROTO(struct super_block *sb, int wait),
[all …]
Dnilfs2.h67 TP_PROTO(struct super_block *sb,
73 TP_ARGS(sb, ti, count, flags, state),
76 __field(void *, sb)
84 __entry->sb = sb;
92 __entry->sb,
Df2fs.h271 TP_PROTO(struct super_block *sb, int wait),
273 TP_ARGS(sb, wait),
282 __entry->dev = sb->s_dev;
283 __entry->dirty = is_sbi_flag_set(F2FS_SB(sb), SBI_IS_DIRTY);
623 TP_PROTO(struct super_block *sb, unsigned int wait_ms,
626 TP_ARGS(sb, wait_ms, prefree, free),
636 __entry->dev = sb->s_dev;
651 TP_PROTO(struct super_block *sb, int gc_type, bool no_bg_gc,
658 TP_ARGS(sb, gc_type, no_bg_gc, nr_free_secs, dirty_nodes,
677 __entry->dev = sb->s_dev;
[all …]
/include/uapi/linux/
Dbfs_fs.h78 #define BFS_UNCLEAN(bfs_sb, sb) \ argument
79 …((le32_to_cpu(bfs_sb->s_from) != -1) && (le32_to_cpu(bfs_sb->s_to) != -1) && !(sb->s_flags & SB_RD…
/include/uapi/linux/raid/
Dmd_p.h215 static inline __u64 md_event(mdp_super_t *sb) { in md_event() argument
216 __u64 ev = sb->events_hi; in md_event()
217 return (ev<<32)| sb->events_lo; in md_event()
/include/linux/sunrpc/
Drpc_pipe_fs.h84 extern struct dentry *rpc_d_lookup_sb(const struct super_block *sb,

12