Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287086
b: refs/heads/master
c: bbe0138
h: refs/heads/master
v: v3
  • Loading branch information
Joern Engel authored and Prasad Joshi committed Jan 28, 2012
1 parent 0eaf937 commit 9f94c50
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 1bcceaff8cbe5e5698ccf1015c9a938aa72718c4
refs/heads/master: bbe01387129f76fa4bec17904eb14c4bdc3c179f
4 changes: 4 additions & 0 deletions trunk/fs/logfs/readwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1576,11 +1576,15 @@ int logfs_write_buf(struct inode *inode, struct page *page, long flags)
static int __logfs_delete(struct inode *inode, struct page *page)
{
long flags = WF_DELETE;
int err;

inode->i_ctime = inode->i_mtime = CURRENT_TIME;

if (page->index < I0_BLOCKS)
return logfs_write_direct(inode, page, flags);
err = grow_inode(inode, page->index, 0);
if (err)
return err;
return logfs_write_rec(inode, page, page->index, 0, flags);
}

Expand Down

0 comments on commit 9f94c50

Please sign in to comment.