aops.c (a90714c150e3ce677c57a9dac3ab1ec342c75a95) aops.c (13723d00e374c2a6d6ccb5af6de965e89c3e1b01)
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either

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

1507
1508 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
1509 if (IS_ERR(handle)) {
1510 ret = PTR_ERR(handle);
1511 mlog_errno(ret);
1512 goto out;
1513 }
1514
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either

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

1507
1508 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
1509 if (IS_ERR(handle)) {
1510 ret = PTR_ERR(handle);
1511 mlog_errno(ret);
1512 goto out;
1513 }
1514
1515 ret = ocfs2_journal_access(handle, inode, wc->w_di_bh,
1516 OCFS2_JOURNAL_ACCESS_WRITE);
1515 ret = ocfs2_journal_access_di(handle, inode, wc->w_di_bh,
1516 OCFS2_JOURNAL_ACCESS_WRITE);
1517 if (ret) {
1518 ocfs2_commit_trans(osb, handle);
1519
1520 mlog_errno(ret);
1521 goto out;
1522 }
1523
1524 if (!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL))

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

1735 ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc))) {
1736 ret = -EDQUOT;
1737 goto out_commit;
1738 }
1739 /*
1740 * We don't want this to fail in ocfs2_write_end(), so do it
1741 * here.
1742 */
1517 if (ret) {
1518 ocfs2_commit_trans(osb, handle);
1519
1520 mlog_errno(ret);
1521 goto out;
1522 }
1523
1524 if (!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL))

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

1735 ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc))) {
1736 ret = -EDQUOT;
1737 goto out_commit;
1738 }
1739 /*
1740 * We don't want this to fail in ocfs2_write_end(), so do it
1741 * here.
1742 */
1743 ret = ocfs2_journal_access(handle, inode, wc->w_di_bh,
1744 OCFS2_JOURNAL_ACCESS_WRITE);
1743 ret = ocfs2_journal_access_di(handle, inode, wc->w_di_bh,
1744 OCFS2_JOURNAL_ACCESS_WRITE);
1745 if (ret) {
1746 mlog_errno(ret);
1747 goto out_quota;
1748 }
1749
1750 /*
1751 * Fill our page array first. That way we've grabbed enough so
1752 * that we can zero and flush if we error after adding the

--- 215 unchanged lines hidden ---
1745 if (ret) {
1746 mlog_errno(ret);
1747 goto out_quota;
1748 }
1749
1750 /*
1751 * Fill our page array first. That way we've grabbed enough so
1752 * that we can zero and flush if we error after adding the

--- 215 unchanged lines hidden ---