Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178805
b: refs/heads/master
c: efd124b
h: refs/heads/master
i:
  178803: f181ac8
v: v3
  • Loading branch information
Boaz Harrosh committed Jan 5, 2010
1 parent 75fa6be commit 6afb41c
Show file tree
Hide file tree
Showing 2 changed files with 17 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: 89be503021f550575fc896671b569941140b2c2e
refs/heads/master: efd124b999fb4d426b30675f1684521af0872789
17 changes: 16 additions & 1 deletion trunk/fs/exofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,13 +738,28 @@ static int exofs_write_begin_export(struct file *file,
fsdata);
}

static int exofs_write_end(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len, unsigned copied,
struct page *page, void *fsdata)
{
struct inode *inode = mapping->host;
/* According to comment in simple_write_end i_mutex is held */
loff_t i_size = inode->i_size;
int ret;

ret = simple_write_end(file, mapping,pos, len, copied, page, fsdata);
if (i_size != inode->i_size)
mark_inode_dirty(inode);
return ret;
}

const struct address_space_operations exofs_aops = {
.readpage = exofs_readpage,
.readpages = exofs_readpages,
.writepage = exofs_writepage,
.writepages = exofs_writepages,
.write_begin = exofs_write_begin_export,
.write_end = simple_write_end,
.write_end = exofs_write_end,
};

/******************************************************************************
Expand Down

0 comments on commit 6afb41c

Please sign in to comment.