search for: ocfs2_is_rename_lock

Displaying 1 result from an estimated 1 matches for "ocfs2_is_rename_lock".

2008 Oct 23
2
[PATCH 1/1] OCFS2: fix for nfs getting stale inode.
...oc_ast_func, + .bast = ocfs2_dealloc_bast_func, + .unlock_ast = ocfs2_unlock_ast_func, + .unblock = ocfs2_unblock_osb_lock, +}; + static inline int ocfs2_is_inode_lock(struct ocfs2_lock_res *lockres) { return lockres->l_type == OCFS2_LOCK_TYPE_META || @@ -138,10 +148,16 @@ static inline int ocfs2_is_rename_lock(s return lockres->l_type == OCFS2_LOCK_TYPE_RENAME; } +static inline int ocfs2_is_dealloc_lock(struct ocfs2_lock_res *lockres) +{ + return lockres->l_type == OCFS2_LOCK_TYPE_DEALLOC; +} + static inline struct ocfs2_super *ocfs2_lock_res_super(struct ocfs2_lock_res *lockres) { BUG_ON(...