summaryrefslogtreecommitdiff
path: root/fs/ufs/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-06-17 14:44:05 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-06-17 14:44:05 -0400
commit4ef51e8b7aaa67493ad5b36a0e5874bf6ff8b956 (patch)
tree932b180b18a96120ac68f85f7de0d3cdac320b1b /fs/ufs/inode.c
parentb853a16176cf3e02c57e215743015614152c2428 (diff)
parente4f95517f18271b1da36cfc5d700e46844396d6e (diff)
Merge branch 'for-linus' into for-next
Diffstat (limited to 'fs/ufs/inode.c')
-rw-r--r--fs/ufs/inode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c
index 99aaf5c9bf4d..f913a6924b23 100644
--- a/fs/ufs/inode.c
+++ b/fs/ufs/inode.c
@@ -903,6 +903,9 @@ void ufs_evict_inode(struct inode * inode)
invalidate_inode_buffers(inode);
clear_inode(inode);
- if (want_delete)
+ if (want_delete) {
+ lock_ufs(inode->i_sb);
ufs_free_inode(inode);
+ unlock_ufs(inode->i_sb);
+ }
}