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/alloc.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/alloc.c')
-rw-r--r-- | fs/ocfs2/alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 89e994dad026..a74ea700ffdc 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c | |||
@@ -7211,6 +7211,8 @@ int ocfs2_convert_inline_data_to_extents(struct inode *inode, | |||
7211 | goto out_commit; | 7211 | goto out_commit; |
7212 | did_quota = 1; | 7212 | did_quota = 1; |
7213 | 7213 | ||
7214 | data_ac->ac_resv = &OCFS2_I(inode)->ip_la_data_resv; | ||
7215 | |||
7214 | ret = ocfs2_claim_clusters(osb, handle, data_ac, 1, &bit_off, | 7216 | ret = ocfs2_claim_clusters(osb, handle, data_ac, 1, &bit_off, |
7215 | &num); | 7217 | &num); |
7216 | if (ret) { | 7218 | if (ret) { |