Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229153
b: refs/heads/master
c: 8754a3f
h: refs/heads/master
i:
  229151: 130949d
v: v3
  • Loading branch information
Jan Kara committed Jan 6, 2011
1 parent 2bcd213 commit 2eaf7a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9db9f9e31d7661dff35a75ed01ff9fc0d6acdaf8
refs/heads/master: 8754a3f718f08dc21b3c5eccd044f612d4bc1ab1
3 changes: 3 additions & 0 deletions trunk/fs/udf/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ static ssize_t udf_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
size_t count = iocb->ki_left;
struct udf_inode_info *iinfo = UDF_I(inode);

down_write(&iinfo->i_data_sem);
if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) {
if (file->f_flags & O_APPEND)
pos = inode->i_size;
Expand All @@ -125,6 +126,7 @@ static ssize_t udf_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
udf_expand_file_adinicb(inode, pos + count, &err);
if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) {
udf_debug("udf_expand_adinicb: err=%d\n", err);
up_write(&iinfo->i_data_sem);
return err;
}
} else {
Expand All @@ -134,6 +136,7 @@ static ssize_t udf_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
iinfo->i_lenAlloc = inode->i_size;
}
}
up_write(&iinfo->i_data_sem);

retval = generic_file_aio_write(iocb, iov, nr_segs, ppos);
if (retval > 0)
Expand Down

0 comments on commit 2eaf7a7

Please sign in to comment.