亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? journal.h

?? ocfs1.2.7 源碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
/* -*- mode: c; c-basic-offset: 8; -*- * vim: noexpandtab sw=8 ts=8 sts=0: * * journal.h * * Defines journalling api and structures. * * Copyright (C) 2003, 2005 Oracle.  All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */#ifndef OCFS2_JOURNAL_H#define OCFS2_JOURNAL_H#include <linux/fs.h>#include <linux/jbd.h>enum ocfs2_journal_state {	OCFS2_JOURNAL_FREE = 0,	OCFS2_JOURNAL_LOADED,	OCFS2_JOURNAL_IN_SHUTDOWN,};struct ocfs2_super;struct ocfs2_dinode;struct ocfs2_journal_handle;struct ocfs2_journal {	enum ocfs2_journal_state   j_state;    /* Journals current state   */	journal_t                 *j_journal; /* The kernels journal type */	struct inode              *j_inode;   /* Kernel inode pointing to					       * this journal             */	struct ocfs2_super        *j_osb;     /* pointer to the super					       * block for the node					       * we're currently					       * running on -- not					       * necessarily the super					       * block from the node					       * which we usually run					       * from (recovery,					       * etc)                     */	struct buffer_head        *j_bh;      /* Journal disk inode block */	atomic_t                  j_num_trans; /* Number of transactions					        * currently in the system. */	unsigned long             j_trans_id;	struct rw_semaphore       j_trans_barrier;	wait_queue_head_t         j_checkpointed;	spinlock_t                j_lock;	struct list_head          j_la_cleanups;	struct work_struct        j_recovery_work;};extern spinlock_t trans_inc_lock;/* wrap j_trans_id so we never have it equal to zero. */static inline unsigned long ocfs2_inc_trans_id(struct ocfs2_journal *j){	unsigned long old_id;	spin_lock(&trans_inc_lock);	old_id = j->j_trans_id++;	if (unlikely(!j->j_trans_id))		j->j_trans_id = 1;	spin_unlock(&trans_inc_lock);	return old_id;}static inline void ocfs2_set_inode_lock_trans(struct ocfs2_journal *journal,					      struct inode *inode){	spin_lock(&trans_inc_lock);	OCFS2_I(inode)->ip_last_trans = journal->j_trans_id;	spin_unlock(&trans_inc_lock);}/* Used to figure out whether it's safe to drop a metadata lock on an * inode. Returns true if all the inodes changes have been * checkpointed to disk. You should be holding the spinlock on the * metadata lock while calling this to be sure that nobody can take * the lock and put it on another transaction. */static inline int ocfs2_inode_fully_checkpointed(struct inode *inode){	int ret;	struct ocfs2_journal *journal = OCFS2_SB(inode->i_sb)->journal;	spin_lock(&trans_inc_lock);	ret = time_after(journal->j_trans_id, OCFS2_I(inode)->ip_last_trans);	spin_unlock(&trans_inc_lock);	return ret;}/* convenience function to check if an inode is still new (has never * hit disk) Will do you a favor and set created_trans = 0 when you've * been checkpointed.  returns '1' if the inode is still new. */static inline int ocfs2_inode_is_new(struct inode *inode){	int ret;	/* System files are never "new" as they're written out by	 * mkfs. This helps us early during mount, before we have the	 * journal open and j_trans_id could be junk. */	if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE)		return 0;	spin_lock(&trans_inc_lock);	ret = !(time_after(OCFS2_SB(inode->i_sb)->journal->j_trans_id,			   OCFS2_I(inode)->ip_created_trans));	if (!ret)		OCFS2_I(inode)->ip_created_trans = 0;	spin_unlock(&trans_inc_lock);	return ret;}static inline void ocfs2_inode_set_new(struct ocfs2_super *osb,				      struct inode *inode){	spin_lock(&trans_inc_lock);	OCFS2_I(inode)->ip_created_trans = osb->journal->j_trans_id;	spin_unlock(&trans_inc_lock);}extern kmem_cache_t *ocfs2_lock_cache;struct ocfs2_journal_lock {	struct inode     *jl_inode;	struct list_head  jl_lock_list;};struct ocfs2_journal_handle {	handle_t            *k_handle; /* kernel handle.                */	struct ocfs2_journal        *journal;	u32                 flags;     /* see flags below.              */	int                 max_buffs; /* Buffs reserved by this handle */	/* The following two fields are for ocfs2_handle_add_lock */	int                 num_locks;	struct list_head    locks;     /* A bunch of locks to					* release on commit. This					* should be a list_head */	struct list_head     inode_list;};#define OCFS2_HANDLE_STARTED			1/* should we sync-commit this handle? */#define OCFS2_HANDLE_SYNC			2static inline int ocfs2_handle_started(struct ocfs2_journal_handle *handle){	return handle->flags & OCFS2_HANDLE_STARTED;}static inline void ocfs2_handle_set_sync(struct ocfs2_journal_handle *handle, int sync){	if (sync)		handle->flags |= OCFS2_HANDLE_SYNC;	else		handle->flags &= ~OCFS2_HANDLE_SYNC;}/* Exported only for the journal struct init code in super.c. Do not call. */void ocfs2_complete_recovery(void *data);/* *  Journal Control: *  Initialize, Load, Shutdown, Wipe a journal. * *  ocfs2_journal_init     - Initialize journal structures in the OSB. *  ocfs2_journal_load     - Load the given journal off disk. Replay it if *                          there's transactions still in there. *  ocfs2_journal_shutdown - Shutdown a journal, this will flush all *                          uncommitted, uncheckpointed transactions. *  ocfs2_journal_wipe     - Wipe transactions from a journal. Optionally *                          zero out each block. *  ocfs2_recovery_thread  - Perform recovery on a node. osb is our own osb. *  ocfs2_mark_dead_nodes - Start recovery on nodes we won't get a heartbeat *                          event on. *  ocfs2_start_checkpoint - Kick the commit thread to do a checkpoint. */void   ocfs2_set_journal_params(struct ocfs2_super *osb);int    ocfs2_journal_init(struct ocfs2_journal *journal,			  int *dirty);void   ocfs2_journal_shutdown(struct ocfs2_super *osb);int    ocfs2_journal_wipe(struct ocfs2_journal *journal,			  int full);int    ocfs2_journal_load(struct ocfs2_journal *journal, int local);int    ocfs2_check_journals_nolocks(struct ocfs2_super *osb);void   ocfs2_recovery_thread(struct ocfs2_super *osb,			     int node_num);int    ocfs2_mark_dead_nodes(struct ocfs2_super *osb);void   ocfs2_complete_mount_recovery(struct ocfs2_super *osb);static inline void ocfs2_start_checkpoint(struct ocfs2_super *osb){	atomic_set(&osb->needs_checkpoint, 1);	wake_up(&osb->checkpoint_event);}static inline void ocfs2_checkpoint_inode(struct inode *inode){	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);	if (ocfs2_mount_local(osb))		return;	if (!ocfs2_inode_fully_checkpointed(inode)) {		/* WARNING: This only kicks off a single		 * checkpoint. If someone races you and adds more		 * metadata to the journal, you won't know, and will		 * wind up waiting *alot* longer than necessary. Right		 * now we only use this in clear_inode so that's		 * OK. */		ocfs2_start_checkpoint(osb);		wait_event(osb->journal->j_checkpointed,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲一区在线电影| 色综合天天综合| 婷婷丁香激情综合| 亚洲乱码中文字幕| 中文字幕在线不卡一区二区三区| 国产人伦精品一区二区| 日本一区二区三区久久久久久久久不| 久久色.com| 国产精品私人自拍| 亚洲男人的天堂在线观看| 亚洲欧洲日韩综合一区二区| 国产精品伦理一区二区| 亚洲欧洲另类国产综合| 亚洲免费大片在线观看| 依依成人精品视频| 天天做天天摸天天爽国产一区 | 26uuu精品一区二区三区四区在线| 欧美人妖巨大在线| 日韩免费观看高清完整版 | 亚洲精选视频在线| 爽爽淫人综合网网站| 男女男精品视频网| 国产乱子伦一区二区三区国色天香| 韩国精品主播一区二区在线观看 | 播五月开心婷婷综合| www.欧美日韩| 欧美丝袜第三区| 欧美一区二区免费观在线| 久久精品亚洲麻豆av一区二区 | 国产情人综合久久777777| 中文字幕一区二区三区乱码在线 | 久久黄色级2电影| 成人黄色一级视频| 91精品国产免费| 国产女人18毛片水真多成人如厕 | 精品国产在天天线2019| 亚洲国产成人一区二区三区| 一区二区三区日韩欧美| 精品亚洲porn| 色久综合一二码| 久久久久综合网| 亚洲最新视频在线播放| 国产一区二区美女诱惑| 欧美日韩aaa| 国产精品成人网| 久久精品国产77777蜜臀| 99久久综合狠狠综合久久| 69p69国产精品| 亚洲丝袜自拍清纯另类| 国产九色精品成人porny| 欧美麻豆精品久久久久久| 国产精品剧情在线亚洲| 久久99在线观看| 欧美中文字幕一区二区三区| 国产婷婷色一区二区三区| 日本网站在线观看一区二区三区| 成人av中文字幕| 久久新电视剧免费观看| 午夜精品在线视频一区| 一本色道久久综合精品竹菊| 国产三级精品视频| 国产一区二区三区高清播放| 91精选在线观看| 亚洲午夜日本在线观看| 成人免费福利片| 国产日韩欧美精品综合| 韩国av一区二区| 日韩免费观看高清完整版在线观看| 午夜精品视频在线观看| 欧美性色综合网| 一区二区三区中文字幕电影| av一区二区三区在线| 中文字幕第一区| 成人综合在线观看| 欧美国产一区视频在线观看| 国产一区二区不卡在线| 精品久久久久久最新网址| 久久精品国产澳门| 久久久综合网站| 国产精品69毛片高清亚洲| 国产亚洲欧美激情| 国产一区视频导航| 久久久青草青青国产亚洲免观| 久久精品国产成人一区二区三区 | 国产精品久久久久久久久久免费看| 精品一区精品二区高清| 26uuu国产在线精品一区二区| 韩国av一区二区三区四区| 久久精品一区八戒影视| av成人老司机| 亚洲va韩国va欧美va| 欧美日本乱大交xxxxx| 奇米精品一区二区三区在线观看 | 午夜伊人狠狠久久| 91麻豆精品91久久久久同性| 国内外成人在线| 国产精品久久久久久久久久久免费看 | 91精品办公室少妇高潮对白| 亚洲自拍偷拍av| 日韩精品最新网址| 国产成人精品一区二区三区网站观看| 中文字幕欧美激情| 欧美亚洲动漫制服丝袜| 日韩av成人高清| 国产日韩av一区| 在线观看欧美日本| 另类小说视频一区二区| 国产精品伦一区二区三级视频| 欧美伊人精品成人久久综合97| 天天操天天色综合| 中文天堂在线一区| 欧美疯狂做受xxxx富婆| 国产成人日日夜夜| 亚洲综合久久久| 久久蜜桃一区二区| 欧美日韩激情一区二区三区| 国产剧情一区二区三区| 亚洲综合在线电影| 久久精品视频在线免费观看| 在线观看视频欧美| 国产精华液一区二区三区| 亚洲一二三四区| 国产偷国产偷精品高清尤物| 欧美日韩亚洲综合在线 | 正在播放亚洲一区| 不卡的av在线| 国产一区二区福利视频| 日韩电影一区二区三区| 亚洲精品va在线观看| 久久久精品国产免大香伊| 欧美日韩二区三区| a级高清视频欧美日韩| 国产一区二区视频在线播放| 丝袜美腿成人在线| 亚洲狠狠爱一区二区三区| 中文字幕av一区二区三区免费看 | 中国色在线观看另类| 精品美女在线播放| 制服丝袜日韩国产| 欧美三级欧美一级| 色综合中文综合网| 国产91精品久久久久久久网曝门| 日韩在线一区二区| 亚洲国产aⅴ天堂久久| 亚洲欧美一区二区三区国产精品 | 亚洲一区二区欧美| 亚洲精品一二三| 中文字幕在线观看一区| 日本一区二区免费在线| 久久久久久电影| 国产亚洲成aⅴ人片在线观看| 日韩欧美成人午夜| 日韩免费在线观看| 2021国产精品久久精品| 26uuu国产一区二区三区| 久久中文娱乐网| 国产亚洲精品超碰| 国产亚洲成av人在线观看导航| 久久久午夜精品理论片中文字幕| 欧美r级电影在线观看| 日韩欧美亚洲国产精品字幕久久久| 欧美一区二区三区在线| 欧美一区二区三区的| 精品久久久久久久一区二区蜜臀| 欧美大胆人体bbbb| 精品91自产拍在线观看一区| 精品福利av导航| 国产欧美精品一区aⅴ影院| 国产精品美女一区二区三区| 亚洲天堂免费看| 亚洲一区在线视频| 日韩国产精品91| 狠狠色丁香久久婷婷综| 北条麻妃一区二区三区| 欧美亚洲综合网| 日韩一区二区电影在线| 久久久噜噜噜久久中文字幕色伊伊| 国产欧美精品一区| 亚洲精品视频免费观看| 麻豆中文一区二区| 懂色av中文字幕一区二区三区 | 亚洲一区成人在线| 久久国产夜色精品鲁鲁99| 成人永久免费视频| 欧美亚洲一区二区在线| 精品久久久久香蕉网| 亚洲精品视频自拍| 另类欧美日韩国产在线| 97精品国产97久久久久久久久久久久| 欧美系列亚洲系列| 久久久久97国产精华液好用吗| 中文字幕日本不卡| 青草国产精品久久久久久| 国产成人在线观看| 欧美午夜片在线观看| 久久久99久久| 奇米色777欧美一区二区| 色综合天天综合网天天狠天天 | 国产不卡高清在线观看视频| 欧洲在线/亚洲|