aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hfs')
-rw-r--r--fs/hfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c
index d499393a8ae7..050a49276499 100644
--- a/fs/hfs/inode.c
+++ b/fs/hfs/inode.c
@@ -547,13 +547,13 @@ static int hfs_file_release(struct inode *inode, struct file *file)
547 if (atomic_read(&file->f_count) != 0) 547 if (atomic_read(&file->f_count) != 0)
548 return 0; 548 return 0;
549 if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) { 549 if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) {
550 down(&inode->i_sem); 550 mutex_lock(&inode->i_mutex);
551 hfs_file_truncate(inode); 551 hfs_file_truncate(inode);
552 //if (inode->i_flags & S_DEAD) { 552 //if (inode->i_flags & S_DEAD) {
553 // hfs_delete_cat(inode->i_ino, HFSPLUS_SB(sb).hidden_dir, NULL); 553 // hfs_delete_cat(inode->i_ino, HFSPLUS_SB(sb).hidden_dir, NULL);
554 // hfs_delete_inode(inode); 554 // hfs_delete_inode(inode);
555 //} 555 //}
556 up(&inode->i_sem); 556 mutex_unlock(&inode->i_mutex);
557 } 557 }
558 return 0; 558 return 0;
559} 559}