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, 0 insertions, 4 deletions
diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c
index aa73f3fd5dd9..7e19835efa2e 100644
--- a/fs/hfs/inode.c
+++ b/fs/hfs/inode.c
@@ -522,8 +522,6 @@ static int hfs_file_open(struct inode *inode, struct file *file)
522{ 522{
523 if (HFS_IS_RSRC(inode)) 523 if (HFS_IS_RSRC(inode))
524 inode = HFS_I(inode)->rsrc_inode; 524 inode = HFS_I(inode)->rsrc_inode;
525 if (atomic_read(&file->f_count) != 1)
526 return 0;
527 atomic_inc(&HFS_I(inode)->opencnt); 525 atomic_inc(&HFS_I(inode)->opencnt);
528 return 0; 526 return 0;
529} 527}
@@ -534,8 +532,6 @@ static int hfs_file_release(struct inode *inode, struct file *file)
534 532
535 if (HFS_IS_RSRC(inode)) 533 if (HFS_IS_RSRC(inode))
536 inode = HFS_I(inode)->rsrc_inode; 534 inode = HFS_I(inode)->rsrc_inode;
537 if (atomic_read(&file->f_count) != 0)
538 return 0;
539 if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) { 535 if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) {
540 mutex_lock(&inode->i_mutex); 536 mutex_lock(&inode->i_mutex);
541 hfs_file_truncate(inode); 537 hfs_file_truncate(inode);