diff options
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 9ee13f70da57..b7650ccd76d0 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c | |||
@@ -957,7 +957,7 @@ static void ocfs2_cleanup_delete_inode(struct inode *inode, | |||
957 | void ocfs2_delete_inode(struct inode *inode) | 957 | void ocfs2_delete_inode(struct inode *inode) |
958 | { | 958 | { |
959 | int wipe, status; | 959 | int wipe, status; |
960 | sigset_t blocked, oldset; | 960 | sigset_t oldset; |
961 | struct buffer_head *di_bh = NULL; | 961 | struct buffer_head *di_bh = NULL; |
962 | 962 | ||
963 | mlog_entry("(inode->i_ino = %lu)\n", inode->i_ino); | 963 | mlog_entry("(inode->i_ino = %lu)\n", inode->i_ino); |
@@ -984,13 +984,7 @@ void ocfs2_delete_inode(struct inode *inode) | |||
984 | * messaging paths may return us -ERESTARTSYS. Which would | 984 | * messaging paths may return us -ERESTARTSYS. Which would |
985 | * cause us to exit early, resulting in inodes being orphaned | 985 | * cause us to exit early, resulting in inodes being orphaned |
986 | * forever. */ | 986 | * forever. */ |
987 | sigfillset(&blocked); | 987 | ocfs2_block_signals(&oldset); |
988 | status = sigprocmask(SIG_BLOCK, &blocked, &oldset); | ||
989 | if (status < 0) { | ||
990 | mlog_errno(status); | ||
991 | ocfs2_cleanup_delete_inode(inode, 1); | ||
992 | goto bail; | ||
993 | } | ||
994 | 988 | ||
995 | /* | 989 | /* |
996 | * Synchronize us against ocfs2_get_dentry. We take this in | 990 | * Synchronize us against ocfs2_get_dentry. We take this in |
@@ -1064,9 +1058,7 @@ bail_unlock_nfs_sync: | |||
1064 | ocfs2_nfs_sync_unlock(OCFS2_SB(inode->i_sb), 0); | 1058 | ocfs2_nfs_sync_unlock(OCFS2_SB(inode->i_sb), 0); |
1065 | 1059 | ||
1066 | bail_unblock: | 1060 | bail_unblock: |
1067 | status = sigprocmask(SIG_SETMASK, &oldset, NULL); | 1061 | ocfs2_unblock_signals(&oldset); |
1068 | if (status < 0) | ||
1069 | mlog_errno(status); | ||
1070 | bail: | 1062 | bail: |
1071 | clear_inode(inode); | 1063 | clear_inode(inode); |
1072 | mlog_exit_void(); | 1064 | mlog_exit_void(); |