Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263617
b: refs/heads/master
c: 866e4ed
h: refs/heads/master
i:
  263615: 12199e5
v: v3
  • Loading branch information
Christoph Hellwig authored and Alex Elder committed Aug 31, 2011
1 parent 8e9bf14 commit 1370b95
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: 242d621964dd8641df53f7d51d4c6ead655cc5a6
refs/heads/master: 866e4ed77448a0c311e1b055eb72ea05423fd799
14 changes: 11 additions & 3 deletions trunk/fs/xfs/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ xfs_synchronize_times(
}

/*
* If the linux inode is valid, mark it dirty.
* Used when committing a dirty inode into a transaction so that
* the inode will get written back by the linux code
* If the linux inode is valid, mark it dirty, else mark the dirty state
* in the XFS inode to make sure we pick it up when reclaiming the inode.
*/
void
xfs_mark_inode_dirty_sync(
Expand All @@ -82,6 +81,10 @@ xfs_mark_inode_dirty_sync(

if (!(inode->i_state & (I_WILL_FREE|I_FREEING)))
mark_inode_dirty_sync(inode);
else {
barrier();
ip->i_update_core = 1;
}
}

void
Expand All @@ -92,6 +95,11 @@ xfs_mark_inode_dirty(

if (!(inode->i_state & (I_WILL_FREE|I_FREEING)))
mark_inode_dirty(inode);
else {
barrier();
ip->i_update_core = 1;
}

}

/*
Expand Down

0 comments on commit 1370b95

Please sign in to comment.