Home
last modified time | relevance | path

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

12

/fs/gfs2/
Dlog.c47 unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct, in gfs2_struct2blk() argument
54 first = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / ssize; in gfs2_struct2blk()
57 second = (sdp->sd_sb.sb_bsize - in gfs2_struct2blk()
91 static int gfs2_ail1_start_one(struct gfs2_sbd *sdp, in gfs2_ail1_start_one() argument
94 __releases(&sdp->sd_ail_lock) in gfs2_ail1_start_one()
95 __acquires(&sdp->sd_ail_lock) in gfs2_ail1_start_one()
105 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one()
109 gfs2_io_error_bh(sdp, bh); in gfs2_ail1_start_one()
123 spin_unlock(&sdp->sd_ail_lock); in gfs2_ail1_start_one()
125 spin_lock(&sdp->sd_ail_lock); in gfs2_ail1_start_one()
[all …]
Dops_fstype.c65 struct gfs2_sbd *sdp; in init_sbd() local
67 sdp = kzalloc(sizeof(struct gfs2_sbd), GFP_KERNEL); in init_sbd()
68 if (!sdp) in init_sbd()
71 sb->s_fs_info = sdp; in init_sbd()
72 sdp->sd_vfs = sb; in init_sbd()
73 sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats); in init_sbd()
74 if (!sdp->sd_lkstats) { in init_sbd()
75 kfree(sdp); in init_sbd()
79 set_bit(SDF_NOJOURNALID, &sdp->sd_flags); in init_sbd()
80 gfs2_tune_init(&sdp->sd_tune); in init_sbd()
[all …]
Dutil.c31 void gfs2_assert_i(struct gfs2_sbd *sdp) in gfs2_assert_i() argument
34 sdp->sd_fsname); in gfs2_assert_i()
37 int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...) in gfs2_lm_withdraw() argument
39 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gfs2_lm_withdraw()
43 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW && in gfs2_lm_withdraw()
44 test_and_set_bit(SDF_SHUTDOWN, &sdp->sd_flags)) in gfs2_lm_withdraw()
51 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW) { in gfs2_lm_withdraw()
52 fs_err(sdp, "about to withdraw this file system\n"); in gfs2_lm_withdraw()
53 BUG_ON(sdp->sd_args.ar_debug); in gfs2_lm_withdraw()
55 kobject_uevent(&sdp->sd_kobj, KOBJ_OFFLINE); in gfs2_lm_withdraw()
[all …]
Dlops.c40 void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_pin() argument
48 gfs2_assert_withdraw(sdp, 0); in gfs2_pin()
50 gfs2_io_error_bh(sdp, bh); in gfs2_pin()
55 spin_lock(&sdp->sd_ail_lock); in gfs2_pin()
58 spin_unlock(&sdp->sd_ail_lock); in gfs2_pin()
60 atomic_inc(&sdp->sd_log_pinned); in gfs2_pin()
72 struct gfs2_sbd *sdp = gl->gl_sbd; in maybe_release_space() local
79 if (sdp->sd_args.ar_discard) in maybe_release_space()
80 gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL); in maybe_release_space()
96 static void gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh, in gfs2_unpin() argument
[all …]
Dsys.c39 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_show() local
41 return a->show ? a->show(sdp, buf) : 0; in gfs2_attr_show()
47 struct gfs2_sbd *sdp = container_of(kobj, struct gfs2_sbd, sd_kobj); in gfs2_attr_store() local
49 return a->store ? a->store(sdp, buf, len) : len; in gfs2_attr_store()
60 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) in id_show() argument
63 MAJOR(sdp->sd_vfs->s_dev), MINOR(sdp->sd_vfs->s_dev)); in id_show()
66 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) in fsname_show() argument
68 return snprintf(buf, PAGE_SIZE, "%s\n", sdp->sd_fsname); in fsname_show()
82 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) in uuid_show() argument
84 struct super_block *s = sdp->sd_vfs; in uuid_show()
[all …]
Dsuper.c296 void gfs2_jindex_free(struct gfs2_sbd *sdp) in gfs2_jindex_free() argument
302 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_free()
303 list_add(&list, &sdp->sd_jindex_list); in gfs2_jindex_free()
304 list_del_init(&sdp->sd_jindex_list); in gfs2_jindex_free()
305 sdp->sd_journals = 0; in gfs2_jindex_free()
306 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_free()
342 struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid) in gfs2_jdesc_find() argument
346 spin_lock(&sdp->sd_jindex_spin); in gfs2_jdesc_find()
347 jd = jdesc_find_i(&sdp->sd_jindex_list, jid); in gfs2_jdesc_find()
348 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jdesc_find()
[all …]
Dtrans.c29 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() argument
38 if (!test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) in gfs2_trans_begin()
52 tr->tr_reserved += gfs2_struct2blk(sdp, revokes, in gfs2_trans_begin()
54 sb_start_intwrite(sdp->sd_vfs); in gfs2_trans_begin()
55 gfs2_holder_init(sdp->sd_trans_gl, LM_ST_SHARED, 0, &tr->tr_t_gh); in gfs2_trans_begin()
61 error = gfs2_log_reserve(sdp, tr->tr_reserved); in gfs2_trans_begin()
73 sb_end_intwrite(sdp->sd_vfs); in gfs2_trans_begin()
87 static void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument
90 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release()
91 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release()
[all …]
Dquota.c81 struct gfs2_sbd *sdp; in gfs2_shrink_qd_memory() local
94 sdp = qd->qd_gl->gl_sbd; in gfs2_shrink_qd_memory()
99 gfs2_assert_warn(sdp, !qd->qd_change); in gfs2_shrink_qd_memory()
100 gfs2_assert_warn(sdp, !qd->qd_slot_count); in gfs2_shrink_qd_memory()
101 gfs2_assert_warn(sdp, !qd->qd_bh_count); in gfs2_shrink_qd_memory()
104 atomic_dec(&sdp->sd_quota_count); in gfs2_shrink_qd_memory()
137 static int qd_alloc(struct gfs2_sbd *sdp, struct kqid qid, in qd_alloc() argument
152 error = gfs2_glock_get(sdp, qd2index(qd), in qd_alloc()
166 static int qd_get(struct gfs2_sbd *sdp, struct kqid qid, in qd_get() argument
177 list_for_each_entry(qd, &sdp->sd_quota_list, qd_list) { in qd_get()
[all …]
Dlock_dlm.c282 struct gfs2_sbd *sdp = gl->gl_sbd; in gdlm_put_lock() local
283 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock()
302 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && in gdlm_put_lock()
496 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock() argument
498 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in sync_unlock()
503 fs_err(sdp, "%s lkid %x error %d\n", in sync_unlock()
511 fs_err(sdp, "%s lkid %x status %d\n", in sync_unlock()
518 static int sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, in sync_lock() argument
521 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in sync_lock()
532 fs_err(sdp, "%s lkid %x flags %x mode %d error %d\n", in sync_lock()
[all …]
Dlog.h24 static inline void gfs2_log_lock(struct gfs2_sbd *sdp) in gfs2_log_lock() argument
25 __acquires(&sdp->sd_log_lock) in gfs2_log_lock()
27 spin_lock(&sdp->sd_log_lock); in gfs2_log_lock()
36 static inline void gfs2_log_unlock(struct gfs2_sbd *sdp) in gfs2_log_unlock() argument
37 __releases(&sdp->sd_log_lock) in gfs2_log_unlock()
39 spin_unlock(&sdp->sd_log_lock); in gfs2_log_unlock()
42 static inline void gfs2_log_pointers_init(struct gfs2_sbd *sdp, in gfs2_log_pointers_init() argument
45 if (++value == sdp->sd_jdesc->jd_blocks) { in gfs2_log_pointers_init()
48 sdp->sd_log_head = sdp->sd_log_tail = value; in gfs2_log_pointers_init()
53 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_add_inode() local
[all …]
Dutil.h30 void gfs2_assert_i(struct gfs2_sbd *sdp);
32 #define gfs2_assert(sdp, assertion) \ argument
35 gfs2_assert_i(sdp); \
41 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion,
44 #define gfs2_assert_withdraw(sdp, assertion) \ argument
45 ((likely(assertion)) ? 0 : gfs2_assert_withdraw_i((sdp), #assertion, \
49 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
52 #define gfs2_assert_warn(sdp, assertion) \ argument
53 ((likely(assertion)) ? 0 : gfs2_assert_warn_i((sdp), #assertion, \
57 int gfs2_consist_i(struct gfs2_sbd *sdp, int cluster_wide,
[all …]
Drecovery.c55 int gfs2_revoke_add(struct gfs2_sbd *sdp, u64 blkno, unsigned int where) in gfs2_revoke_add() argument
57 struct list_head *head = &sdp->sd_revoke_list; in gfs2_revoke_add()
84 int gfs2_revoke_check(struct gfs2_sbd *sdp, u64 blkno, unsigned int where) in gfs2_revoke_check() argument
90 list_for_each_entry(rr, &sdp->sd_revoke_list, rr_list) { in gfs2_revoke_check()
100 wrap = (rr->rr_where < sdp->sd_replay_tail); in gfs2_revoke_check()
101 a = (sdp->sd_replay_tail < where); in gfs2_revoke_check()
108 void gfs2_revoke_clean(struct gfs2_sbd *sdp) in gfs2_revoke_clean() argument
110 struct list_head *head = &sdp->sd_revoke_list; in gfs2_revoke_clean()
316 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in foreach_descriptor() local
330 if (gfs2_meta_check(sdp, bh)) { in foreach_descriptor()
[all …]
Dmeta_io.c130 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_getbuf() local
137 shift = PAGE_CACHE_SHIFT - sdp->sd_sb.sb_bsize_shift; in gfs2_getbuf()
155 create_empty_buffers(page, sdp->sd_sb.sb_bsize, 0); in gfs2_getbuf()
163 map_bh(bh, sdp->sd_vfs, blkno); in gfs2_getbuf()
213 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_meta_read() local
216 if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) { in gfs2_meta_read()
238 gfs2_io_error_bh(sdp, bh); in gfs2_meta_read()
255 int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) in gfs2_meta_wait() argument
257 if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) in gfs2_meta_wait()
265 gfs2_io_error_bh(sdp, bh); in gfs2_meta_wait()
[all …]
Dsuper.h17 extern void gfs2_lm_unmount(struct gfs2_sbd *sdp);
19 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) in gfs2_jindex_size() argument
22 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_size()
23 x = sdp->sd_journals; in gfs2_jindex_size()
24 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_size()
28 extern void gfs2_jindex_free(struct gfs2_sbd *sdp);
32 extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid);
35 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
38 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp);
39 extern void gfs2_online_uevent(struct gfs2_sbd *sdp);
[all …]
Daops.c101 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_writepage_common() local
106 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_writepage_common()
184 struct gfs2_sbd *sdp = GFS2_SB(inode); in __gfs2_jdata_writepage() local
192 gfs2_page_add_databufs(ip, page, 0, sdp->sd_vfs->s_blocksize-1); in __gfs2_jdata_writepage()
208 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_jdata_writepage() local
215 ret = gfs2_trans_begin(sdp, RES_DINODE + 1, 0); in gfs2_jdata_writepage()
224 gfs2_trans_end(sdp); in gfs2_jdata_writepage()
263 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_write_jdata_pagevec() local
271 ret = gfs2_trans_begin(sdp, nrblocks, nrblocks); in gfs2_write_jdata_pagevec()
313 gfs2_trans_end(sdp); in gfs2_write_jdata_pagevec()
[all …]
Dglops.c52 struct gfs2_sbd *sdp = gl->gl_sbd; in __gfs2_ail_flush() local
59 gfs2_log_lock(sdp); in __gfs2_ail_flush()
60 spin_lock(&sdp->sd_ail_lock); in __gfs2_ail_flush()
75 gfs2_trans_add_revoke(sdp, bd); in __gfs2_ail_flush()
78 spin_unlock(&sdp->sd_ail_lock); in __gfs2_ail_flush()
79 gfs2_log_unlock(sdp); in __gfs2_ail_flush()
85 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_ail_empty_gl() local
95 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64)); in gfs2_ail_empty_gl()
97 sb_start_intwrite(sdp->sd_vfs); in gfs2_ail_empty_gl()
98 gfs2_log_reserve(sdp, tr.tr_reserved); in gfs2_ail_empty_gl()
[all …]
Drgrp.c413 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify() local
433 fs_err(sdp, "free data mismatch: %u != %u\n", in gfs2_rgrp_verify()
441 fs_err(sdp, "used data mismatch: %u != %u\n", in gfs2_rgrp_verify()
448 fs_err(sdp, "used metadata mismatch: %u != %u\n", in gfs2_rgrp_verify()
470 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd() argument
475 spin_lock(&sdp->sd_rindex_spin); in gfs2_blk2rgrpd()
476 n = sdp->sd_rindex_tree.rb_node; in gfs2_blk2rgrpd()
485 spin_unlock(&sdp->sd_rindex_spin); in gfs2_blk2rgrpd()
496 spin_unlock(&sdp->sd_rindex_spin); in gfs2_blk2rgrpd()
508 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp) in gfs2_rgrpd_get_first() argument
[all …]
Dlops.h30 extern void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page);
31 extern void gfs2_log_flush_bio(struct gfs2_sbd *sdp, int rw);
32 extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
34 static inline unsigned int buf_limit(struct gfs2_sbd *sdp) in buf_limit() argument
38 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit()
42 static inline unsigned int databuf_limit(struct gfs2_sbd *sdp) in databuf_limit() argument
46 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit()
50 static inline void lops_before_commit(struct gfs2_sbd *sdp) in lops_before_commit() argument
55 gfs2_log_ops[x]->lo_before_commit(sdp); in lops_before_commit()
58 static inline void lops_after_commit(struct gfs2_sbd *sdp, in lops_after_commit() argument
[all …]
Dglock.c52 struct gfs2_sbd *sdp; /* incore superblock */ member
82 static unsigned int gl_hash(const struct gfs2_sbd *sdp, in gl_hash() argument
89 h = jhash(&sdp, sizeof(struct gfs2_sbd *), h); in gl_hash()
119 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_glock_free() local
122 if (atomic_dec_and_test(&sdp->sd_glock_disposal)) in gfs2_glock_free()
123 wake_up(&sdp->sd_glock_wait); in gfs2_glock_free()
211 struct gfs2_sbd *sdp = gl->gl_sbd; in gfs2_glock_put() local
223 sdp->sd_lockstruct.ls_ops->lm_put_lock(gl); in gfs2_glock_put()
236 const struct gfs2_sbd *sdp, in search_bucket() argument
245 if (gl->gl_sbd != sdp) in search_bucket()
[all …]
Dbmap.c238 static void find_metapath(const struct gfs2_sbd *sdp, u64 block, in find_metapath() argument
244 mp->mp_list[i] = do_div(block, sdp->sd_inptrs); in find_metapath()
455 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_bmap_alloc() local
456 struct super_block *sb = sdp->sd_vfs; in gfs2_bmap_alloc()
485 ptrs_per_blk = height > 1 ? sdp->sd_inptrs : sdp->sd_diptrs; in gfs2_bmap_alloc()
512 gfs2_trans_add_unrevoke(sdp, bn, n); in gfs2_bmap_alloc()
570 fs_err(sdp, in gfs2_bmap_alloc()
606 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_block_map() local
607 unsigned int bsize = sdp->sd_sb.sb_bsize; in gfs2_block_map()
609 const u64 *arr = sdp->sd_heightsize; in gfs2_block_map()
[all …]
Dxattr.c40 static int ea_calc_size(struct gfs2_sbd *sdp, unsigned int nsize, size_t dsize, in ea_calc_size() argument
43 unsigned int jbsize = sdp->sd_jbsize; in ea_calc_size()
58 static int ea_check_size(struct gfs2_sbd *sdp, unsigned int nsize, size_t dsize) in ea_check_size() argument
65 ea_calc_size(sdp, nsize, dsize, &size); in ea_check_size()
68 if (size > sdp->sd_jbsize) in ea_check_size()
229 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_dealloc_unstuffed() local
241 error = gfs2_rindex_update(sdp); in ea_dealloc_unstuffed()
258 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
268 error = gfs2_trans_begin(sdp, rgd->rd_length + RES_DINODE + in ea_dealloc_unstuffed()
317 gfs2_trans_end(sdp); in ea_dealloc_unstuffed()
[all …]
Dinode.c107 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_set_iop() local
112 if (gfs2_localflocks(sdp)) in gfs2_set_iop()
118 if (gfs2_localflocks(sdp)) in gfs2_set_iop()
155 struct gfs2_sbd *sdp = GFS2_SB(inode); in gfs2_inode_lookup() local
158 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, &ip->i_gl); in gfs2_inode_lookup()
163 error = gfs2_glock_get(sdp, no_addr, &gfs2_iopen_glops, CREATE, &io_gl); in gfs2_inode_lookup()
206 struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr, in gfs2_lookup_by_inum() argument
209 struct super_block *sb = sdp->sd_vfs; in gfs2_lookup_by_inum()
215 error = gfs2_glock_nq_num(sdp, no_addr, &gfs2_inode_glops, in gfs2_lookup_by_inum()
220 error = gfs2_check_blk_type(sdp, no_addr, blktype); in gfs2_lookup_by_inum()
[all …]
Dglock.h124 int (*lm_mount) (struct gfs2_sbd *sdp, const char *table);
125 void (*lm_first_done) (struct gfs2_sbd *sdp);
126 void (*lm_recovery_result) (struct gfs2_sbd *sdp, unsigned int jid,
128 void (*lm_unmount) (struct gfs2_sbd *sdp);
129 void (*lm_withdraw) (struct gfs2_sbd *sdp);
181 extern int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
198 extern int gfs2_glock_nq_num(struct gfs2_sbd *sdp, u64 number,
236 extern void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
238 extern void gfs2_glock_thaw(struct gfs2_sbd *sdp);
245 extern int gfs2_create_debugfs_file(struct gfs2_sbd *sdp);
[all …]
Dquota.h31 extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
33 extern int gfs2_quota_init(struct gfs2_sbd *sdp);
34 extern void gfs2_quota_cleanup(struct gfs2_sbd *sdp);
37 extern void gfs2_wake_up_statfs(struct gfs2_sbd *sdp);
41 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check() local
43 if (sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) in gfs2_quota_lock_check()
48 if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON) in gfs2_quota_lock_check()
/fs/reiserfs/
Dreiserfs.h1512 #define sd_v1_mode(sdp) (le16_to_cpu((sdp)->sd_mode)) argument
1513 #define set_sd_v1_mode(sdp,v) ((sdp)->sd_mode = cpu_to_le16(v)) argument
1514 #define sd_v1_nlink(sdp) (le16_to_cpu((sdp)->sd_nlink)) argument
1515 #define set_sd_v1_nlink(sdp,v) ((sdp)->sd_nlink = cpu_to_le16(v)) argument
1516 #define sd_v1_uid(sdp) (le16_to_cpu((sdp)->sd_uid)) argument
1517 #define set_sd_v1_uid(sdp,v) ((sdp)->sd_uid = cpu_to_le16(v)) argument
1518 #define sd_v1_gid(sdp) (le16_to_cpu((sdp)->sd_gid)) argument
1519 #define set_sd_v1_gid(sdp,v) ((sdp)->sd_gid = cpu_to_le16(v)) argument
1520 #define sd_v1_size(sdp) (le32_to_cpu((sdp)->sd_size)) argument
1521 #define set_sd_v1_size(sdp,v) ((sdp)->sd_size = cpu_to_le32(v)) argument
[all …]

12