Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206313
b: refs/heads/master
c: d889dc8
h: refs/heads/master
i:
  206311: bce9136
v: v3
  • Loading branch information
Toshiyuki Okajima authored and Theodore Ts'o committed Jul 27, 2010
1 parent 001bd8e commit a9f3d7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 79e8303677fc15f508b9877e0fea1925c4add6f3
refs/heads/master: d889dc8382c4d71b6d538b7b13777bc1ec51df10
3 changes: 2 additions & 1 deletion trunk/fs/ext4/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ ext4_file_write(struct kiocb *iocb, const struct iovec *iov,
struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb);
size_t length = iov_length(iov, nr_segs);

if (pos > sbi->s_bitmap_maxbytes)
if ((pos > sbi->s_bitmap_maxbytes ||
(pos == sbi->s_bitmap_maxbytes && length > 0)))
return -EFBIG;

if (pos + length > sbi->s_bitmap_maxbytes) {
Expand Down

0 comments on commit a9f3d7f

Please sign in to comment.