File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -867,6 +867,11 @@ static inline void inode_lock(struct inode *inode)
867
867
down_write (& inode -> i_rwsem );
868
868
}
869
869
870
+ static inline __must_check int inode_lock_killable (struct inode * inode )
871
+ {
872
+ return down_write_killable (& inode -> i_rwsem );
873
+ }
874
+
870
875
static inline void inode_unlock (struct inode * inode )
871
876
{
872
877
up_write (& inode -> i_rwsem );
@@ -877,6 +882,11 @@ static inline void inode_lock_shared(struct inode *inode)
877
882
down_read (& inode -> i_rwsem );
878
883
}
879
884
885
+ static inline __must_check int inode_lock_shared_killable (struct inode * inode )
886
+ {
887
+ return down_read_killable (& inode -> i_rwsem );
888
+ }
889
+
880
890
static inline void inode_unlock_shared (struct inode * inode )
881
891
{
882
892
up_read (& inode -> i_rwsem );
You can’t perform that action at this time.
0 commit comments