diff options
author | Mark Fasheh <mfasheh@suse.com> | 2009-12-07 16:15:40 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-05-05 21:17:30 -0400 |
commit | 4fe370afaae49c57619bb0bedb75de7e7c168308 (patch) | |
tree | 7b2752fc9616578e9e3baa659e6c724b301d26c5 /fs/ocfs2/inode.c | |
parent | d02f00cc057809d96c044cc72d5b9809d59f7d49 (diff) |
ocfs2: use allocation reservations during file write
Add a per-inode reservations structure and pass it through to the
reservations code.
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 7cc0b4665d5e..62b4743fb6f1 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c | |||
@@ -1096,6 +1096,10 @@ void ocfs2_clear_inode(struct inode *inode) | |||
1096 | ocfs2_mark_lockres_freeing(&oi->ip_inode_lockres); | 1096 | ocfs2_mark_lockres_freeing(&oi->ip_inode_lockres); |
1097 | ocfs2_mark_lockres_freeing(&oi->ip_open_lockres); | 1097 | ocfs2_mark_lockres_freeing(&oi->ip_open_lockres); |
1098 | 1098 | ||
1099 | ocfs2_resv_discard(&OCFS2_SB(inode->i_sb)->osb_la_resmap, | ||
1100 | &oi->ip_la_data_resv); | ||
1101 | ocfs2_resv_init_once(&oi->ip_la_data_resv); | ||
1102 | |||
1099 | /* We very well may get a clear_inode before all an inodes | 1103 | /* We very well may get a clear_inode before all an inodes |
1100 | * metadata has hit disk. Of course, we can't drop any cluster | 1104 | * metadata has hit disk. Of course, we can't drop any cluster |
1101 | * locks until the journal has finished with it. The only | 1105 | * locks until the journal has finished with it. The only |