Home
last modified time | relevance | path

Searched refs:inode1 (Results 1 – 8 of 8) sorted by relevance

/fs/ext4/
Dioctl.c59 static void swap_inode_data(struct inode *inode1, struct inode *inode2) in swap_inode_data() argument
65 ei1 = EXT4_I(inode1); in swap_inode_data()
68 memswap(&inode1->i_flags, &inode2->i_flags, sizeof(inode1->i_flags)); in swap_inode_data()
69 memswap(&inode1->i_version, &inode2->i_version, in swap_inode_data()
70 sizeof(inode1->i_version)); in swap_inode_data()
71 memswap(&inode1->i_blocks, &inode2->i_blocks, in swap_inode_data()
72 sizeof(inode1->i_blocks)); in swap_inode_data()
73 memswap(&inode1->i_bytes, &inode2->i_bytes, sizeof(inode1->i_bytes)); in swap_inode_data()
74 memswap(&inode1->i_atime, &inode2->i_atime, sizeof(inode1->i_atime)); in swap_inode_data()
75 memswap(&inode1->i_mtime, &inode2->i_mtime, sizeof(inode1->i_mtime)); in swap_inode_data()
[all …]
Dmove_extent.c134 mext_page_double_lock(struct inode *inode1, struct inode *inode2, in mext_page_double_lock() argument
140 BUG_ON(!inode1 || !inode2); in mext_page_double_lock()
141 if (inode1 < inode2) { in mext_page_double_lock()
142 mapping[0] = inode1->i_mapping; in mext_page_double_lock()
149 mapping[1] = inode1->i_mapping; in mext_page_double_lock()
169 if (inode1 > inode2) { in mext_page_double_lock()
Dextents.c5541 ext4_swap_extents(handle_t *handle, struct inode *inode1, in ext4_swap_extents() argument
5549 BUG_ON(!rwsem_is_locked(&EXT4_I(inode1)->i_data_sem)); in ext4_swap_extents()
5551 BUG_ON(!mutex_is_locked(&inode1->i_mutex)); in ext4_swap_extents()
5552 BUG_ON(!mutex_is_locked(&inode1->i_mutex)); in ext4_swap_extents()
5554 *erp = ext4_es_remove_extent(inode1, lblk1, count); in ext4_swap_extents()
5567 path1 = ext4_find_extent(inode1, lblk1, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents()
5623 *erp = ext4_force_split_extent_at(handle, inode1, in ext4_swap_extents()
5649 *erp = ext4_force_split_extent_at(handle, inode1, in ext4_swap_extents()
5667 *erp = ext4_ext_get_access(handle, inode1, path1 + path1->p_depth); in ext4_swap_extents()
5686 ext4_ext_try_to_merge(handle, inode1, path1, ex1); in ext4_swap_extents()
[all …]
Dext4.h2952 extern int ext4_swap_extents(handle_t *handle, struct inode *inode1,
/fs/
Dinode.c991 void lock_two_nondirectories(struct inode *inode1, struct inode *inode2) in lock_two_nondirectories() argument
993 if (inode1 > inode2) in lock_two_nondirectories()
994 swap(inode1, inode2); in lock_two_nondirectories()
996 if (inode1 && !S_ISDIR(inode1->i_mode)) in lock_two_nondirectories()
997 mutex_lock(&inode1->i_mutex); in lock_two_nondirectories()
998 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in lock_two_nondirectories()
1008 void unlock_two_nondirectories(struct inode *inode1, struct inode *inode2) in unlock_two_nondirectories() argument
1010 if (inode1 && !S_ISDIR(inode1->i_mode)) in unlock_two_nondirectories()
1011 mutex_unlock(&inode1->i_mutex); in unlock_two_nondirectories()
1012 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in unlock_two_nondirectories()
/fs/ubifs/
Ddir.c504 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument
506 mutex_lock_nested(&ubifs_inode(inode1)->ui_mutex, WB_MUTEX_1); in lock_2_inodes()
515 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument
518 mutex_unlock(&ubifs_inode(inode1)->ui_mutex); in unlock_2_inodes()
953 static void lock_3_inodes(struct inode *inode1, struct inode *inode2, in lock_3_inodes() argument
956 mutex_lock_nested(&ubifs_inode(inode1)->ui_mutex, WB_MUTEX_1); in lock_3_inodes()
957 if (inode2 != inode1) in lock_3_inodes()
969 static void unlock_3_inodes(struct inode *inode1, struct inode *inode2, in unlock_3_inodes() argument
974 if (inode1 != inode2) in unlock_3_inodes()
976 mutex_unlock(&ubifs_inode(inode1)->ui_mutex); in unlock_3_inodes()
Dubifs.h1542 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
/fs/ocfs2/
Dnamei.c962 struct inode *inode1, in ocfs2_double_lock() argument
967 struct ocfs2_inode_info *oi1 = OCFS2_I(inode1); in ocfs2_double_lock()
989 inode2 = inode1; in ocfs2_double_lock()
990 inode1 = tmpinode; in ocfs2_double_lock()
1003 status = ocfs2_inode_lock_nested(inode1, bh1, 1, OI_LS_RENAME2); in ocfs2_double_lock()
1020 (unsigned long long)OCFS2_I(inode1)->ip_blkno, in ocfs2_double_lock()
1029 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument
1031 ocfs2_inode_unlock(inode1, 1); in ocfs2_double_unlock()
1033 if (inode1 != inode2) in ocfs2_double_unlock()