Home
last modified time | relevance | path

Searched refs:i_sem (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/fs/f2fs/
Dnamei.c933 down_write(&F2FS_I(new_inode)->i_sem); in f2fs_rename()
937 up_write(&F2FS_I(new_inode)->i_sem); in f2fs_rename()
980 down_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
985 up_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
1143 down_write(&F2FS_I(old_inode)->i_sem); in f2fs_cross_rename()
1145 up_write(&F2FS_I(old_inode)->i_sem); in f2fs_cross_rename()
1149 down_write(&F2FS_I(old_dir)->i_sem); in f2fs_cross_rename()
1151 up_write(&F2FS_I(old_dir)->i_sem); in f2fs_cross_rename()
1158 down_write(&F2FS_I(new_inode)->i_sem); in f2fs_cross_rename()
1160 up_write(&F2FS_I(new_inode)->i_sem); in f2fs_cross_rename()
[all …]
Ddir.c669 down_write(&F2FS_I(inode)->i_sem); in f2fs_add_regular_entry()
696 up_write(&F2FS_I(inode)->i_sem); in f2fs_add_regular_entry()
767 down_write(&F2FS_I(inode)->i_sem); in f2fs_do_tmpfile()
778 up_write(&F2FS_I(inode)->i_sem); in f2fs_do_tmpfile()
786 down_write(&F2FS_I(inode)->i_sem); in f2fs_drop_nlink()
797 up_write(&F2FS_I(inode)->i_sem); in f2fs_drop_nlink()
Dinline.c573 down_write(&F2FS_I(inode)->i_sem); in f2fs_add_inline_entry()
603 up_write(&F2FS_I(inode)->i_sem); in f2fs_add_inline_entry()
Dxattr.c750 down_write(&F2FS_I(inode)->i_sem); in f2fs_setxattr()
754 up_write(&F2FS_I(inode)->i_sem); in f2fs_setxattr()
Dfile.c197 down_write(&fi->i_sem); in try_to_fix_pino()
203 up_write(&fi->i_sem); in try_to_fix_pino()
267 down_read(&F2FS_I(inode)->i_sem); in f2fs_do_sync_file()
269 up_read(&F2FS_I(inode)->i_sem); in f2fs_do_sync_file()
856 down_write(&F2FS_I(inode)->i_sem); in f2fs_setattr()
859 up_write(&F2FS_I(inode)->i_sem); in f2fs_setattr()
Df2fs.h682 struct rw_semaphore i_sem; /* protect fi info */ member
2734 down_read(&F2FS_I(inode)->i_sem); in f2fs_skip_inode_update()
2736 up_read(&F2FS_I(inode)->i_sem); in f2fs_skip_inode_update()
Ddata.c2192 down_write(&F2FS_I(inode)->i_sem); in __write_data_page()
2195 up_write(&F2FS_I(inode)->i_sem); in __write_data_page()
Dsuper.c895 init_rwsem(&fi->i_sem); in f2fs_alloc_inode()
/Linux-v5.4/fs/jffs2/
DREADME.Locking43 This is the JFFS2-internal equivalent of the inode mutex i->i_sem.
48 The reason that the i_sem itself isn't used for this purpose is to
49 avoid deadlocks with garbage collection -- the VFS will lock the i_sem
53 VFS. If the garbage collection code were to attempt to lock the i_sem
55 lead to deadlock, unless we played games with unlocking the i_sem