quota_local.c (695a461296e5df148c99ac087b9e1cb380f4db15) | quota_local.c (8cb471e8f82506937fe5e2e9fb0bf90f6b1f1170) |
---|---|
1/* 2 * Implementation of operations over local quota file 3 */ 4 5#include <linux/fs.h> 6#include <linux/quota.h> 7#include <linux/quotaops.h> 8#include <linux/module.h> --- 979 unchanged lines hidden (view full) --- 988 } 989 bh = sb_getblk(sb, p_blkno); 990 if (!bh) { 991 status = -ENOMEM; 992 mlog_errno(status); 993 goto out_trans; 994 } 995 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; | 1/* 2 * Implementation of operations over local quota file 3 */ 4 5#include <linux/fs.h> 6#include <linux/quota.h> 7#include <linux/quotaops.h> 8#include <linux/module.h> --- 979 unchanged lines hidden (view full) --- 988 } 989 bh = sb_getblk(sb, p_blkno); 990 if (!bh) { 991 status = -ENOMEM; 992 mlog_errno(status); 993 goto out_trans; 994 } 995 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; |
996 ocfs2_set_new_buffer_uptodate(lqinode, bh); | 996 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), bh); |
997 status = ocfs2_journal_access_dq(handle, lqinode, bh, 998 OCFS2_JOURNAL_ACCESS_CREATE); 999 if (status < 0) { 1000 mlog_errno(status); 1001 goto out_trans; 1002 } 1003 lock_buffer(bh); 1004 dchunk->dqc_free = cpu_to_le32(ol_quota_entries_per_block(sb)); --- 17 unchanged lines hidden (view full) --- 1022 goto out_trans; 1023 } 1024 dbh = sb_getblk(sb, p_blkno); 1025 if (!dbh) { 1026 status = -ENOMEM; 1027 mlog_errno(status); 1028 goto out_trans; 1029 } | 997 status = ocfs2_journal_access_dq(handle, lqinode, bh, 998 OCFS2_JOURNAL_ACCESS_CREATE); 999 if (status < 0) { 1000 mlog_errno(status); 1001 goto out_trans; 1002 } 1003 lock_buffer(bh); 1004 dchunk->dqc_free = cpu_to_le32(ol_quota_entries_per_block(sb)); --- 17 unchanged lines hidden (view full) --- 1022 goto out_trans; 1023 } 1024 dbh = sb_getblk(sb, p_blkno); 1025 if (!dbh) { 1026 status = -ENOMEM; 1027 mlog_errno(status); 1028 goto out_trans; 1029 } |
1030 ocfs2_set_new_buffer_uptodate(lqinode, dbh); | 1030 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), dbh); |
1031 status = ocfs2_journal_access_dq(handle, lqinode, dbh, 1032 OCFS2_JOURNAL_ACCESS_CREATE); 1033 if (status < 0) { 1034 mlog_errno(status); 1035 goto out_trans; 1036 } 1037 lock_buffer(dbh); 1038 memset(dbh->b_data, 0, sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE); --- 87 unchanged lines hidden (view full) --- 1126 goto out; 1127 } 1128 bh = sb_getblk(sb, p_blkno); 1129 if (!bh) { 1130 status = -ENOMEM; 1131 mlog_errno(status); 1132 goto out; 1133 } | 1031 status = ocfs2_journal_access_dq(handle, lqinode, dbh, 1032 OCFS2_JOURNAL_ACCESS_CREATE); 1033 if (status < 0) { 1034 mlog_errno(status); 1035 goto out_trans; 1036 } 1037 lock_buffer(dbh); 1038 memset(dbh->b_data, 0, sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE); --- 87 unchanged lines hidden (view full) --- 1126 goto out; 1127 } 1128 bh = sb_getblk(sb, p_blkno); 1129 if (!bh) { 1130 status = -ENOMEM; 1131 mlog_errno(status); 1132 goto out; 1133 } |
1134 ocfs2_set_new_buffer_uptodate(lqinode, bh); | 1134 ocfs2_set_new_buffer_uptodate(INODE_CACHE(lqinode), bh); |
1135 1136 /* Local quota info, chunk header and the new block we initialize */ 1137 handle = ocfs2_start_trans(OCFS2_SB(sb), 1138 OCFS2_LOCAL_QINFO_WRITE_CREDITS + 1139 2 * OCFS2_QUOTA_BLOCK_UPDATE_CREDITS); 1140 if (IS_ERR(handle)) { 1141 status = PTR_ERR(handle); 1142 mlog_errno(status); --- 196 unchanged lines hidden --- | 1135 1136 /* Local quota info, chunk header and the new block we initialize */ 1137 handle = ocfs2_start_trans(OCFS2_SB(sb), 1138 OCFS2_LOCAL_QINFO_WRITE_CREDITS + 1139 2 * OCFS2_QUOTA_BLOCK_UPDATE_CREDITS); 1140 if (IS_ERR(handle)) { 1141 status = PTR_ERR(handle); 1142 mlog_errno(status); --- 196 unchanged lines hidden --- |