Searched refs:lvb (Results 1 - 17 of 17) sorted by relevance

/linux-master/fs/ocfs2/
H A Ddlmglue.c116 struct ocfs2_meta_lvb *lvb = ocfs2_dlm_lvb(&lockres->l_lksb); local
121 lvb->lvb_version, be32_to_cpu(lvb->lvb_iclusters),
122 be32_to_cpu(lvb->lvb_igeneration));
124 (unsigned long long)be64_to_cpu(lvb->lvb_isize),
125 be32_to_cpu(lvb->lvb_iuid), be32_to_cpu(lvb->lvb_igid),
126 be16_to_cpu(lvb->lvb_imode));
128 "mtime_packed 0x%llx iattr 0x%x\n", be16_to_cpu(lvb->lvb_inlink),
129 (long long)be64_to_cpu(lvb
2164 struct ocfs2_meta_lvb *lvb; local
2211 struct ocfs2_meta_lvb *lvb; local
2252 struct ocfs2_meta_lvb *lvb = ocfs2_dlm_lvb(&lockres->l_lksb); local
2752 struct ocfs2_orphan_scan_lvb *lvb; local
2779 struct ocfs2_orphan_scan_lvb *lvb; local
2912 struct ocfs2_trim_fs_lvb *lvb; local
2952 struct ocfs2_trim_fs_lvb *lvb; local
3140 char *lvb; local
3646 ocfs2_downconvert_lock(struct ocfs2_super *osb, struct ocfs2_lock_res *lockres, int new_level, int lvb, unsigned int generation) argument
4173 struct ocfs2_qinfo_lvb *lvb; local
4203 struct ocfs2_qinfo_lvb *lvb = ocfs2_dlm_lvb(&lockres->l_lksb); local
[all...]
H A Dstackglue.h52 * The dlm_lockstatus struct includes lvb space, but the dlm_lksb struct only
53 * has a pointer to separately allocated lvb space. This struct exists only to
54 * include in the lksb union to make space for a combined dlm_lksb and lvb.
58 char lvb[DLM_LVB_LEN]; member in struct:fsdlm_lksb_plus_lvb
197 * Pull the lvb pointer off of the stack-specific lksb.
H A Dstack_user.c776 static void lvb_to_version(char *lvb, struct ocfs2_protocol_version *ver) argument
779 (struct ocfs2_protocol_version *)lvb;
788 static void version_to_lvb(struct ocfs2_protocol_version *ver, char *lvb) argument
791 (struct ocfs2_protocol_version *)lvb;
H A Dstack_o2cb.c241 return (void *)(lksb->lksb_o2dlm.lvb);
/linux-master/include/uapi/linux/
H A Ddlm_device.h47 char lvb[DLM_USER_LVB_LEN]; member in struct:dlm_lock_params
/linux-master/fs/ocfs2/dlm/
H A Ddlmconvert.c137 /* EX + LKM_VALBLK + convert == set lvb */
138 mlog(0, "will set lvb: converting %s->%s\n",
148 "lvb: converting %s->%s\n",
154 "into lvb: converting %s->%s\n",
196 memcpy(res->lvb, lock->lksb->lvb, DLM_LVB_LEN);
200 * an invalid lvb.
378 /* extra data to send if we are updating lvb */
380 vec[1].iov_base = lock->lksb->lvb;
460 mlog(ML_ERROR, "both PUT and GET lvb specifie
[all...]
H A Ddlmast.c177 mlog(0, "getting lvb from lockres for %s node\n",
180 memcpy(lksb->lvb, res->lvb, DLM_LVB_LEN);
182 /* Do nothing for lvb put requests - they should be done in
184 * racing gets and puts which could result in old lvb data
192 /* reset any lvb flags on the lksb */
294 mlog(ML_ERROR, "Both PUT and GET lvb specified, (0x%x)\n",
300 mlog(0, "lvb: %s\n", flags & LKM_PUT_LVB ? "put lvb" :
301 (flags & LKM_GET_LVB ? "get lvb"
[all...]
H A Ddlmunlock.c149 /* make the final update to the lvb */
151 memcpy(res->lvb, lksb->lvb, DLM_LVB_LEN);
258 /* if cancel or unlock succeeded, lvb work is done */
269 * update of the lvb will be sent to the new master */
344 /* extra data to send if we are updating lvb */
346 vec[1].iov_base = lock->lksb->lvb;
411 mlog(ML_ERROR, "bad args! cannot modify lvb on a CANCEL "
427 mlog(0, "lvb: %s\n", flags & LKM_PUT_LVB ? "put lvb"
[all...]
H A Ddlmrecovery.c1178 /* Ignore lvb in all locks in the blocked list */
1186 if (dlm_lvb_is_empty(mres->lvb)) {
1187 memcpy(mres->lvb, lock->lksb->lvb, DLM_LVB_LEN);
1191 /* Ensure the lvb copied for migration matches in other valid locks */
1192 if (!memcmp(mres->lvb, lock->lksb->lvb, DLM_LVB_LEN))
1195 mlog(ML_ERROR, "Mismatched lvb in lock cookie=%u:%llu, name=%.*s, "
1774 * This holds true for the convert, cancel and unlock cases, and since lvb
1775 * updates are tied to these same messages, it applies to lvb update
[all...]
H A Ddlmcommon.h313 char lvb[DLM_LVB_LEN]; member in struct:dlm_lock_resource
366 static inline int dlm_lvb_is_empty(char *lvb) argument
370 if (lvb[i])
560 u8 lvb[DLM_LVB_LEN]; member in struct:dlm_migratable_lockres
599 s8 lvb[]; member in struct:dlm_convert_lock
614 s8 lvb[]; member in struct:dlm_unlock_lock
630 s8 lvb[]; member in struct:dlm_proxy_ast
674 * lvb recovery based on each node's info */
H A Ddlmapi.h92 /* Callers are only allowed access to the lvb and status members of
98 char lvb[DLM_LVB_LEN]; member in struct:dlm_lockstatus
151 #define LKM_PUT_LVB 0x20000000 /* extension: lvb is being passed
153 #define LKM_GET_LVB 0x40000000 /* extension: lvb should be copied
H A Ddlmdebug.c515 /* lvb */
519 "%02x", (unsigned char)res->lvb[i]);
H A Ddlmmaster.c574 memset(res->lvb, 0, DLM_LVB_LEN);
/linux-master/fs/ocfs2/dlmfs/
H A Duserdlm.c540 char *lvb; local
547 lvb = ocfs2_dlm_lvb(&lockres->l_lksb);
548 memcpy(lvb, val, len);
556 char *lvb; local
563 lvb = ocfs2_dlm_lvb(&lockres->l_lksb);
564 memcpy(val, lvb, DLM_LVB_LEN);
H A Ddlmfs.c227 char lvb[DLM_LVB_LEN]; local
229 if (!user_dlm_read_lvb(file_inode(file), lvb))
232 return simple_read_from_buffer(buf, count, ppos, lvb, sizeof(lvb));
250 /* don't write past the lvb */
/linux-master/fs/dlm/
H A Duser.c51 char lvb[DLM_USER_LVB_LEN]; member in struct:dlm_lock_params32
119 memcpy(kb->i.lock.lvb, kb32->i.lock.lvb, DLM_USER_LVB_LEN);
296 params->lkid, params->lvb);
339 params->lvb);
755 /* copy lvb to userspace if there is one, it's been updated, and
/linux-master/fs/gfs2/
H A Dlock_dlm.c305 /* don't want to skip dlm_unlock writing the lvb when lock has one */
349 * 10. gfs2_control updates control_lock lvb with new generation and jid bits
353 * 14. gfs2_control updates control_lock lvb jid bits for recovered journals
376 * 10. gfs2_control sets control_lock lvb = new gen + bits for failed jids
378 * 14. gfs2_control clears control_lock lvb bits for recovered jids
385 * All nodes attempt to update the control_lock lvb with the new generation
387 * do so; others will see that it's already done (lvb already contains new
391 * . All nodes attempt to set control_lock lvb gen + bits for the new gen
392 * . One node gets control_lock first and writes the lvb, others see it's done
394 * . One node succeeds for a jid, and that one clears the jid bit in the lvb
497 all_jid_bits_clear(char *lvb) argument
[all...]

Completed in 263 milliseconds