Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288420
b: refs/heads/master
c: f6940fe
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara authored and Al Viro committed Mar 10, 2012
1 parent 719f150 commit 2892bf4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 978d6d8c4574098050b22281b9ed06818c0b23ca
refs/heads/master: f6940fe9092e796119af691c7f722c252f4fc524
2 changes: 0 additions & 2 deletions trunk/fs/udf/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,10 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
static int udf_release_file(struct inode *inode, struct file *filp)
{
if (filp->f_mode & FMODE_WRITE) {
mutex_lock(&inode->i_mutex);
down_write(&UDF_I(inode)->i_data_sem);
udf_discard_prealloc(inode);
udf_truncate_tail_extent(inode);
up_write(&UDF_I(inode)->i_data_sem);
mutex_unlock(&inode->i_mutex);
}
return 0;
}
Expand Down

0 comments on commit 2892bf4

Please sign in to comment.