diff options
Diffstat (limited to 'fs/ufs/inode.c')
-rw-r--r-- | fs/ufs/inode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index be7d42c7d938..2d93ab07da8a 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c | |||
@@ -902,6 +902,9 @@ void ufs_evict_inode(struct inode * inode) | |||
902 | invalidate_inode_buffers(inode); | 902 | invalidate_inode_buffers(inode); |
903 | clear_inode(inode); | 903 | clear_inode(inode); |
904 | 904 | ||
905 | if (want_delete) | 905 | if (want_delete) { |
906 | lock_ufs(inode->i_sb); | ||
906 | ufs_free_inode(inode); | 907 | ufs_free_inode(inode); |
908 | unlock_ufs(inode->i_sb); | ||
909 | } | ||
907 | } | 910 | } |