Home
last modified time | relevance | path

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

12

/include/linux/
A Dsbitmap.h113 struct sbitmap sb; member
177 return sb->depth - (index << sb->shift); in __map_depth()
188 kvfree(sb->map); in sbitmap_free()
189 sb->map = NULL; in sbitmap_free()
220 #define SB_NR_TO_INDEX(sb, bitnr) ((bitnr) >> (sb)->shift) argument
255 word = sb->map[index].word & ~sb->map[index].cleared; in __sbitmap_for_each_set()
269 if (!fn(sb, (index << sb->shift) + nr, data)) in __sbitmap_for_each_set()
296 return &sb->map[SB_NR_TO_INDEX(sb, bitnr)].word; in __sbitmap_word()
303 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit()
308 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit()
[all …]
A Dquotaops.h19 return &sb->s_dquot; in sb_dqopt()
33 #define quota_error(sb, fmt, args...) \ argument
34 __quota_error((sb), __func__, fmt , ## args)
66 int dquot_scan_active(struct super_block *sb,
124 return sb_dqopt(sb)->info + type; in sb_dqinfo()
133 return sb_dqopt(sb)->flags & in sb_has_quota_usage_enabled()
139 return sb_dqopt(sb)->flags & in sb_has_quota_limits_enabled()
145 return sb_dqopt(sb)->flags & in sb_has_quota_suspended()
158 return sb_has_quota_usage_enabled(sb, type); in sb_has_quota_loaded()
168 return sb_has_quota_loaded(sb, type) && in sb_has_quota_active()
[all …]
A Dbuffer_head.h344 sb_bread(struct super_block *sb, sector_t block) in sb_bread() argument
346 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread()
352 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable()
356 sb_breadahead(struct super_block *sb, sector_t block) in sb_breadahead() argument
358 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead()
386 return __getblk(sb->s_bdev, block, sb->s_blocksize); in sb_getblk()
392 return bdev_getblk(sb->s_bdev, block, sb->s_blocksize, gfp); in sb_getblk_gfp()
398 return __find_get_block(sb->s_bdev, block, sb->s_blocksize); in sb_find_get_block()
404 return __find_get_block_nonatomic(sb->s_bdev, block, sb->s_blocksize); in sb_find_get_block_nonatomic()
411 bh->b_bdev = sb->s_bdev; in map_bh()
[all …]
A Dexportfs.h257 struct dentry * (*fh_to_dentry)(struct super_block *sb, struct fid *fid,
259 struct dentry * (*fh_to_parent)(struct super_block *sb, struct fid *fid,
266 int (*get_uuid)(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
363 struct dentry *generic_fh_to_dentry(struct super_block *sb,
365 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
366 struct dentry *generic_fh_to_parent(struct super_block *sb,
368 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
A 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()
A 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);
A Dfs.h2426 static inline bool sb_rdonly(const struct super_block *sb) { return sb->s_flags & SB_RDONLY; } in sb_rdonly() argument
2783 len = sizeof(sb->s_uuid); in super_set_uuid()
2784 sb->s_uuid_len = len; in super_set_uuid()
2785 memcpy(&sb->s_uuid, uuid, len); in super_set_uuid()
2791 snprintf(sb->s_sysfs_name, sizeof(sb->s_sysfs_name), "%pg", sb->s_bdev); in super_set_sysfs_name_bdev()
2797 WARN_ON(sb->s_uuid_len != sizeof(sb->s_uuid)); in super_set_sysfs_name_uuid()
2798 snprintf(sb->s_sysfs_name, sizeof(sb->s_sysfs_name), "%pU", sb->s_uuid.b); in super_set_sysfs_name_uuid()
2804 strscpy(sb->s_sysfs_name, sb->s_id, sizeof(sb->s_sysfs_name)); in super_set_sysfs_name_id()
2814 vsnprintf(sb->s_sysfs_name, sizeof(sb->s_sysfs_name), fmt, args); in super_set_sysfs_name_generic()
3391 return alloc_inode(sb); in new_inode_pseudo()
[all …]
A Dfs_context.h149 int (*fill_super)(struct super_block *sb,
152 int (*fill_super)(struct super_block *sb,
155 int (*fill_super)(struct super_block *sb,
159 int setup_bdev_super(struct super_block *sb, int sb_flags,
164 int (*fill_super)(struct super_block *sb,
168 int (*fill_super)(struct super_block *sb,
A Dfsnotify_backend.h317 struct super_block *sb; member
395 return ((struct fs_error_report *) data)->sb; in fsnotify_data_sb()
525 FSNOTIFY_ITER_FUNCS(sb, SB)
574 static inline struct fsnotify_sb_info *fsnotify_sb_info(struct super_block *sb) in fsnotify_sb_info() argument
577 return READ_ONCE(sb->s_fsnotify_info); in fsnotify_sb_info()
585 return &fsnotify_sb_info(sb)->watched_objects[0]; in fsnotify_sb_watched_objects()
650 extern void fsnotify_sb_delete(struct super_block *sb);
652 extern void fsnotify_sb_free(struct super_block *sb);
950 static inline void fsnotify_sb_delete(struct super_block *sb) in fsnotify_sb_delete() argument
956 static inline void fsnotify_sb_free(struct super_block *sb) in fsnotify_sb_free() argument
[all …]
A 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…
339 int (*get_next_id) (struct super_block *sb, struct kqid *qid);
A Dkernfs.h416 struct kernfs_root *kernfs_root_from_sb(struct super_block *sb);
417 struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn);
420 struct super_block *sb);
462 const void *kernfs_super_ns(struct super_block *sb);
465 void kernfs_kill_sb(struct super_block *sb);
510 static inline struct kernfs_root *kernfs_root_from_sb(struct super_block *sb) in kernfs_root_from_sb() argument
514 kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn) in kernfs_get_inode() argument
578 static inline const void *kernfs_super_ns(struct super_block *sb) in kernfs_super_ns() argument
586 static inline void kernfs_kill_sb(struct super_block *sb) { } in kernfs_kill_sb() argument
A Dfsnotify.h21 static inline bool fsnotify_sb_has_priority_watchers(struct super_block *sb, in fsnotify_sb_has_priority_watchers() argument
24 struct fsnotify_sb_info *sbinfo = fsnotify_sb_info(sb); in fsnotify_sb_has_priority_watchers()
34 static inline bool fsnotify_sb_has_watchers(struct super_block *sb) in fsnotify_sb_has_watchers() argument
36 return fsnotify_sb_has_priority_watchers(sb, 0); in fsnotify_sb_has_watchers()
498 static inline int fsnotify_sb_error(struct super_block *sb, struct inode *inode, in fsnotify_sb_error() argument
504 .sb = sb, in fsnotify_sb_error()
A Dfscrypt.h154 const union fscrypt_policy *(*get_dummy_policy)(struct super_block *sb);
175 bool (*has_stable_inodes)(struct super_block *sb);
191 struct block_device **(*get_devices)(struct super_block *sb,
366 struct super_block *sb);
380 void fscrypt_destroy_keyring(struct super_block *sb);
445 static inline void fscrypt_set_ops(struct super_block *sb, in fscrypt_set_ops() argument
448 sb->s_cop = s_cop; in fscrypt_set_ops()
590 struct super_block *sb) in fscrypt_show_test_dummy_encryption() argument
606 static inline void fscrypt_destroy_keyring(struct super_block *sb) in fscrypt_destroy_keyring() argument
822 static inline void fscrypt_set_ops(struct super_block *sb, in fscrypt_set_ops() argument
A Dproc_fs.h77 static inline struct proc_fs_info *proc_sb_info(struct super_block *sb) in proc_sb_info() argument
79 return sb->s_fs_info; in proc_sb_info()
246 static inline struct pid_namespace *proc_pid_ns(struct super_block *sb) in proc_pid_ns() argument
248 return proc_sb_info(sb)->pid_ns; in proc_pid_ns()
A Dwriteback.h184 void try_to_writeback_inodes_sb(struct super_block *sb, enum wb_reason reason);
210 void cgroup_writeback_umount(struct super_block *sb);
296 static inline void cgroup_writeback_umount(struct super_block *sb) in cgroup_writeback_umount() argument
A Dsecurity.h366 int security_sb_alloc(struct super_block *sb);
367 void security_sb_delete(struct super_block *sb);
368 void security_sb_free(struct super_block *sb);
373 int security_sb_kern_mount(const struct super_block *sb);
380 int security_sb_set_mnt_opts(struct super_block *sb,
698 const struct super_block *sb) in security_quotactl() argument
764 static inline int security_sb_alloc(struct super_block *sb) in security_sb_alloc() argument
769 static inline void security_sb_delete(struct super_block *sb) in security_sb_delete() argument
772 static inline void security_sb_free(struct super_block *sb) in security_sb_free() argument
781 static inline int security_sb_remount(struct super_block *sb, in security_sb_remount() argument
[all …]
/include/linux/usb/
A Dxhci-sideband.h71 xhci_sideband_unregister(struct xhci_sideband *sb);
73 xhci_sideband_add_endpoint(struct xhci_sideband *sb,
76 xhci_sideband_remove_endpoint(struct xhci_sideband *sb,
79 xhci_sideband_stop_endpoint(struct xhci_sideband *sb,
82 xhci_sideband_get_endpoint_buffer(struct xhci_sideband *sb,
85 xhci_sideband_get_event_buffer(struct xhci_sideband *sb);
87 xhci_sideband_create_interrupter(struct xhci_sideband *sb, int num_seg,
90 xhci_sideband_remove_interrupter(struct xhci_sideband *sb);
92 xhci_sideband_interrupter_id(struct xhci_sideband *sb);
95 void xhci_sideband_notify_ep_ring_free(struct xhci_sideband *sb,
[all …]
/include/linux/mtd/
A Dsuper.h18 int (*fill_super)(struct super_block *sb,
20 extern void kill_mtd_super(struct super_block *sb);
/include/trace/events/
A Dext4.h782 TP_ARGS(sb, pa),
828 TP_ARGS(sb, needed),
1012 TP_ARGS(sb, wait),
1341 TP_ARGS(sb, group),
1363 TP_ARGS(sb, group)
1370 TP_ARGS(sb, group)
1377 TP_ARGS(sb, group)
1766 TP_ARGS(sb, ino),
2588 TP_ARGS(sb, fsmap),
2616 TP_ARGS(sb, fsmap))
[all …]
A 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,
A Df2fs.h291 TP_ARGS(sb, wait),
300 __entry->dev = sb->s_dev;
1185 TP_ARGS(sb, type, bio),
1220 TP_ARGS(sb, type, bio),
1229 TP_ARGS(sb, type, bio),
1238 TP_ARGS(sb, type, bio),
1247 TP_ARGS(sb, type, bio),
1546 TP_ARGS(sb, reason, msg),
1904 TP_ARGS(sb, type, count),
1928 TP_ARGS(sb, type, count)
[all …]
/include/uapi/linux/
A 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/
A Ddrm_fb_dma_helper.h25 struct drm_scanout_buffer *sb);
A Ddrm_panic.h72 void (*set_pixel)(struct drm_scanout_buffer *sb, unsigned int x,
/include/uapi/linux/raid/
A 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()

Completed in 80 milliseconds

12