quota_global.c (695a461296e5df148c99ac087b9e1cb380f4db15) quota_global.c (8cb471e8f82506937fe5e2e9fb0bf90f6b1f1170)
1/*
2 * Implementation of operations over global quota file
3 */
4#include <linux/spinlock.h>
5#include <linux/fs.h>
6#include <linux/quota.h>
7#include <linux/quotaops.h>
8#include <linux/dqblk_qtree.h>

--- 239 unchanged lines hidden (view full) ---

248 }
249 lock_buffer(bh);
250 if (new)
251 memset(bh->b_data, 0, sb->s_blocksize);
252 memcpy(bh->b_data + offset, data, len);
253 flush_dcache_page(bh->b_page);
254 set_buffer_uptodate(bh);
255 unlock_buffer(bh);
1/*
2 * Implementation of operations over global quota file
3 */
4#include <linux/spinlock.h>
5#include <linux/fs.h>
6#include <linux/quota.h>
7#include <linux/quotaops.h>
8#include <linux/dqblk_qtree.h>

--- 239 unchanged lines hidden (view full) ---

248 }
249 lock_buffer(bh);
250 if (new)
251 memset(bh->b_data, 0, sb->s_blocksize);
252 memcpy(bh->b_data + offset, data, len);
253 flush_dcache_page(bh->b_page);
254 set_buffer_uptodate(bh);
255 unlock_buffer(bh);
256 ocfs2_set_buffer_uptodate(gqinode, bh);
256 ocfs2_set_buffer_uptodate(INODE_CACHE(gqinode), bh);
257 err = ocfs2_journal_access_dq(handle, gqinode, bh, ja_type);
258 if (err < 0) {
259 brelse(bh);
260 goto out;
261 }
262 err = ocfs2_journal_dirty(handle, bh);
263 brelse(bh);
264 if (err < 0)

--- 620 unchanged lines hidden ---
257 err = ocfs2_journal_access_dq(handle, gqinode, bh, ja_type);
258 if (err < 0) {
259 brelse(bh);
260 goto out;
261 }
262 err = ocfs2_journal_dirty(handle, bh);
263 brelse(bh);
264 if (err < 0)

--- 620 unchanged lines hidden ---