commit | 4fe370afaae49c57619bb0bedb75de7e7c168308 | [log] [tgz] |
---|---|---|
author | Mark Fasheh <mfasheh@suse.com> | Mon Dec 07 13:15:40 2009 -0800 |
committer | Joel Becker <joel.becker@oracle.com> | Wed May 05 18:17:30 2010 -0700 |
tree | 7b2752fc9616578e9e3baa659e6c724b301d26c5 | |
parent | d02f00cc057809d96c044cc72d5b9809d59f7d49 [diff] [blame] |
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>
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index 89e994d..a74ea70 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c
@@ -7211,6 +7211,8 @@ goto out_commit; did_quota = 1; + data_ac->ac_resv = &OCFS2_I(inode)->ip_la_data_resv; + ret = ocfs2_claim_clusters(osb, handle, data_ac, 1, &bit_off, &num); if (ret) {