#include "xattr.h"
#include "acl.h"
-
/*
* Convert from xattr value to acl struct.
*/
struct buffer_head *bh = NULL;
int status = 0;
- status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_LOCK_RECURSIVE);
+ status = ocfs2_inode_lock(inode, &bh, 1);
if (status < 0) {
if (status != -ENOENT)
mlog_errno(status);
osb = OCFS2_SB(inode->i_sb);
if (!(osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL))
return NULL;
- ret = ocfs2_inode_lock_full(inode, &di_bh, 0, OCFS2_LOCK_RECURSIVE);
+ ret = ocfs2_inode_lock(inode, &di_bh, 0);
if (ret < 0) {
if (ret != -ENOENT)
mlog_errno(ret);
}
if (lockres->l_flags & OCFS2_LOCK_BLOCKED &&
- !ocfs2_may_continue_on_blocked_lock(lockres, level) &&
- !(arg_flags & OCFS2_LOCK_RECURSIVE)) {
+ !ocfs2_may_continue_on_blocked_lock(lockres, level)) {
/* is the lock is currently blocked on behalf of
* another node */
lockres_add_mask_waiter(lockres, &mw, OCFS2_LOCK_BLOCKED, 0);
/* don't block waiting for the downconvert thread, instead return -EAGAIN */
#define OCFS2_LOCK_NONBLOCK (0x04)
-/* if requested level is <= l_level, ignore BLOCKED flag. */
-#define OCFS2_LOCK_RECURSIVE (0x08)
/* Locking subclasses of inode cluster lock */
enum {
OI_LS_NORMAL = 0,