Home
last modified time | relevance | path

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

12

/include/linux/
Dsbitmap.h113 struct sbitmap sb; member
170 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
174 static inline unsigned int __map_depth(const struct sbitmap *sb, int index) in __map_depth() argument
176 if (index == sb->map_nr - 1) in __map_depth()
177 return sb->depth - (index << sb->shift); in __map_depth()
178 return 1U << sb->shift; in __map_depth()
185 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free() argument
187 free_percpu(sb->alloc_hint); in sbitmap_free()
188 kvfree(sb->map); in sbitmap_free()
189 sb->map = NULL; in sbitmap_free()
[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()
33 #define quota_error(sb, fmt, args...) \ argument
34 __quota_error((sb), __func__, fmt , ## args)
37 void __quota_error(struct super_block *sb, const char *func,
46 struct dquot *dqget(struct super_block *sb, struct kqid qid);
66 int dquot_scan_active(struct super_block *sb,
69 struct dquot *dquot_alloc(struct super_block *sb, int type);
81 int dquot_disable(struct super_block *sb, int type, unsigned int flags);
83 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
[all …]
Dcleancache.h79 static inline void cleancache_init_fs(struct super_block *sb) in cleancache_init_fs() argument
82 __cleancache_init_fs(sb); in cleancache_init_fs()
85 static inline void cleancache_init_shared_fs(struct super_block *sb) in cleancache_init_shared_fs() argument
88 __cleancache_init_shared_fs(sb); in cleancache_init_shared_fs()
118 static inline void cleancache_invalidate_fs(struct super_block *sb) in cleancache_invalidate_fs() argument
121 __cleancache_invalidate_fs(sb); in cleancache_invalidate_fs()
Dbuffer_head.h346 sb_bread(struct super_block *sb, sector_t block) in sb_bread() argument
348 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread()
352 sb_bread_unmovable(struct super_block *sb, sector_t block) in sb_bread_unmovable() argument
354 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable()
358 sb_breadahead(struct super_block *sb, sector_t block) in sb_breadahead() argument
360 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead()
385 static inline struct buffer_head *sb_getblk(struct super_block *sb, in sb_getblk() argument
388 return __getblk(sb->s_bdev, block, sb->s_blocksize); in sb_getblk()
391 static inline struct buffer_head *sb_getblk_gfp(struct super_block *sb, in sb_getblk_gfp() argument
394 return bdev_getblk(sb->s_bdev, block, sb->s_blocksize, gfp); in sb_getblk_gfp()
[all …]
Dexportfs.h226 struct dentry * (*fh_to_dentry)(struct super_block *sb, struct fid *fid,
228 struct dentry * (*fh_to_parent)(struct super_block *sb, struct fid *fid,
235 int (*get_uuid)(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
321 struct dentry *generic_fh_to_dentry(struct super_block *sb,
323 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
324 struct dentry *generic_fh_to_parent(struct super_block *sb,
326 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()
Dfs.h1208 #define sb_has_strict_encoding(sb) \ argument
1209 (sb->s_encoding_flags & SB_ENC_STRICT_MODE_FL)
1212 #define sb_no_casefold_compat_fallback(sb) \ argument
1213 (sb->s_encoding_flags & SB_ENC_NO_COMPAT_FALLBACK_FL)
1215 #define sb_no_casefold_compat_fallback(sb) (1) argument
1586 static inline bool fsuidgid_has_mapping(struct super_block *sb, in fsuidgid_has_mapping() argument
1589 struct user_namespace *fs_userns = sb->s_user_ns; in fsuidgid_has_mapping()
1727 static inline void __sb_end_write(struct super_block *sb, int level) in __sb_end_write() argument
1729 percpu_up_read(sb->s_writers.rw_sem + level-1); in __sb_end_write()
1732 static inline void __sb_start_write(struct super_block *sb, int level) in __sb_start_write() argument
[all …]
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.h151 int (*fill_super)(struct super_block *sb,
154 int (*fill_super)(struct super_block *sb,
157 int (*fill_super)(struct super_block *sb,
161 int setup_bdev_super(struct super_block *sb, int sb_flags,
166 int (*fill_super)(struct super_block *sb,
170 int (*fill_super)(struct super_block *sb,
Dfsnotify_backend.h297 struct super_block *sb; member
351 return ((struct fs_error_report *) data)->sb; in fsnotify_data_sb()
449 FSNOTIFY_ITER_FUNCS(sb, SB)
498 static inline struct fsnotify_sb_info *fsnotify_sb_info(struct super_block *sb) in fsnotify_sb_info() argument
501 return READ_ONCE(sb->s_fsnotify_info); in fsnotify_sb_info()
507 static inline atomic_long_t *fsnotify_sb_watched_objects(struct super_block *sb) in fsnotify_sb_watched_objects() argument
509 return &fsnotify_sb_info(sb)->watched_objects[0]; in fsnotify_sb_watched_objects()
574 extern void fsnotify_sb_delete(struct super_block *sb);
575 extern void fsnotify_sb_free(struct super_block *sb);
879 static inline void fsnotify_sb_delete(struct super_block *sb) in fsnotify_sb_delete() argument
[all …]
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);
Dfsnotify.h24 static inline bool fsnotify_sb_has_priority_watchers(struct super_block *sb, in fsnotify_sb_has_priority_watchers() argument
27 struct fsnotify_sb_info *sbinfo = fsnotify_sb_info(sb); in fsnotify_sb_has_priority_watchers()
37 static inline bool fsnotify_sb_has_watchers(struct super_block *sb) in fsnotify_sb_has_watchers() argument
39 return fsnotify_sb_has_priority_watchers(sb, 0); in fsnotify_sb_has_watchers()
482 static inline int fsnotify_sb_error(struct super_block *sb, struct inode *inode, in fsnotify_sb_error() argument
488 .sb = sb, in fsnotify_sb_error()
Dkernfs.h423 struct kernfs_root *kernfs_root_from_sb(struct super_block *sb);
424 struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn);
427 struct super_block *sb);
468 const void *kernfs_super_ns(struct super_block *sb);
471 void kernfs_kill_sb(struct super_block *sb);
516 static inline struct kernfs_root *kernfs_root_from_sb(struct super_block *sb) in kernfs_root_from_sb() argument
520 kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn) in kernfs_get_inode() argument
582 static inline const void *kernfs_super_ns(struct super_block *sb) in kernfs_super_ns() argument
590 static inline void kernfs_kill_sb(struct super_block *sb) { } in kernfs_kill_sb() argument
Dfscrypt.h155 const union fscrypt_policy *(*get_dummy_policy)(struct super_block *sb);
176 bool (*has_stable_inodes)(struct super_block *sb);
192 struct block_device **(*get_devices)(struct super_block *sb,
374 struct super_block *sb);
388 void fscrypt_destroy_keyring(struct super_block *sb);
453 static inline void fscrypt_set_ops(struct super_block *sb, in fscrypt_set_ops() argument
456 sb->s_cop = s_cop; in fscrypt_set_ops()
600 struct super_block *sb) in fscrypt_show_test_dummy_encryption() argument
616 static inline void fscrypt_destroy_keyring(struct super_block *sb) in fscrypt_destroy_keyring() argument
832 static inline void fscrypt_set_ops(struct super_block *sb, in fscrypt_set_ops() argument
Dproc_fs.h75 static inline struct proc_fs_info *proc_sb_info(struct super_block *sb) in proc_sb_info() argument
77 return sb->s_fs_info; in proc_sb_info()
244 static inline struct pid_namespace *proc_pid_ns(struct super_block *sb) in proc_pid_ns() argument
246 return proc_sb_info(sb)->pid_ns; in proc_pid_ns()
Dwriteback.h195 void try_to_writeback_inodes_sb(struct super_block *sb, enum wb_reason reason);
224 void cgroup_writeback_umount(struct super_block *sb);
331 static inline void cgroup_writeback_umount(struct super_block *sb) in cgroup_writeback_umount() argument
/include/linux/usb/
Dxhci-sideband.h72 xhci_sideband_unregister(struct xhci_sideband *sb);
74 xhci_sideband_add_endpoint(struct xhci_sideband *sb,
77 xhci_sideband_remove_endpoint(struct xhci_sideband *sb,
80 xhci_sideband_stop_endpoint(struct xhci_sideband *sb,
83 xhci_sideband_get_endpoint_buffer(struct xhci_sideband *sb,
86 xhci_sideband_get_event_buffer(struct xhci_sideband *sb);
96 xhci_sideband_create_interrupter(struct xhci_sideband *sb, int num_seg,
99 xhci_sideband_remove_interrupter(struct xhci_sideband *sb);
101 xhci_sideband_interrupter_id(struct xhci_sideband *sb);
104 void xhci_sideband_notify_ep_ring_free(struct xhci_sideband *sb,
[all …]
/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.h655 TP_PROTO(struct super_block *sb, unsigned long long blk,
658 TP_ARGS(sb, blk, count),
668 __entry->dev = sb->s_dev;
751 TP_PROTO(struct super_block *sb, struct ext4_prealloc_space *pa),
753 TP_ARGS(sb, pa),
763 __entry->dev = sb->s_dev;
797 TP_PROTO(struct super_block *sb, int needed),
799 TP_ARGS(sb, needed),
808 __entry->dev = sb->s_dev;
981 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.h289 TP_PROTO(struct super_block *sb, int wait),
291 TP_ARGS(sb, wait),
300 __entry->dev = sb->s_dev;
301 __entry->dirty = is_sbi_flag_set(F2FS_SB(sb), SBI_IS_DIRTY);
641 TP_PROTO(struct super_block *sb, unsigned int wait_ms,
644 TP_ARGS(sb, wait_ms, prefree, free),
654 __entry->dev = sb->s_dev;
669 TP_PROTO(struct super_block *sb, int gc_type, bool no_bg_gc,
676 TP_ARGS(sb, gc_type, no_bg_gc, nr_free_secs, dirty_nodes,
695 __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/drm/
Ddrm_fb_dma_helper.h25 struct drm_scanout_buffer *sb);
Ddrm_panic.h62 void (*set_pixel)(struct drm_scanout_buffer *sb, unsigned int x,
/include/uapi/linux/raid/
Dmd_p.h211 static inline __u64 md_event(mdp_super_t *sb) { in md_event() argument
212 __u64 ev = sb->events_hi; in md_event()
213 return (ev<<32)| sb->events_lo; in md_event()

12