spin_unlock(&orangefs_superblocks_lock); \
} while (0)
-#define orangefs_lock_inode(inode) spin_lock(&inode->i_lock)
-#define orangefs_unlock_inode(inode) spin_unlock(&inode->i_lock)
-
#define fill_default_sys_attrs(sys_attr, type, mode) \
do { \
sys_attr.owner = from_kuid(current_user_ns(), current_fsuid()); \
rounded_up_size =
(inode_size + (4096 - (inode_size % 4096)));
- orangefs_lock_inode(inode);
+ spin_lock(&inode->i_lock);
inode->i_bytes = inode_size;
inode->i_blocks =
(unsigned long)(rounded_up_size / 512);
- orangefs_unlock_inode(inode);
+ spin_unlock(&inode->i_lock);
/*
* NOTE: make sure all the places we're called
default:
inode->i_size = PAGE_CACHE_SIZE;
- orangefs_lock_inode(inode);
+ spin_lock(&inode->i_lock);
inode_set_bytes(inode, inode->i_size);
- orangefs_unlock_inode(inode);
+ spin_unlock(&inode->i_lock);
break;
}