diff options
author | Mark Fasheh <mfasheh@suse.com> | 2009-12-07 13:15:40 -0800 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-05-05 18:17:30 -0700 |
commit | 4fe370afaae49c57619bb0bedb75de7e7c168308 (patch) | |
tree | 7b2752fc9616578e9e3baa659e6c724b301d26c5 /fs/ocfs2/aops.c | |
parent | d02f00cc057809d96c044cc72d5b9809d59f7d49 (diff) | |
download | linux-4fe370afaae49c57619bb0bedb75de7e7c168308.tar.bz2 |
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/aops.c')
-rw-r--r-- | fs/ocfs2/aops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 21441ddb5506..3623ca20cc18 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -1735,6 +1735,9 @@ int ocfs2_write_begin_nolock(struct address_space *mapping, goto out; } + if (data_ac) + data_ac->ac_resv = &OCFS2_I(inode)->ip_la_data_resv; + credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list, clusters_to_alloc); |