xfs_rtalloc.c (112d6212c80a1c560757520bd822a41c0ad15c2c) | xfs_rtalloc.c (da781e64b28c1d72f84bab6a884359c9c8d522aa) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" --- 778 unchanged lines hidden (view full) --- 787 xfs_ilock(ip, XFS_ILOCK_EXCL); 788 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); 789 790 /* 791 * Allocate blocks to the bitmap file. 792 */ 793 nmap = 1; 794 error = xfs_bmapi_write(tp, ip, oblocks, nblocks - oblocks, | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" --- 778 unchanged lines hidden (view full) --- 787 xfs_ilock(ip, XFS_ILOCK_EXCL); 788 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); 789 790 /* 791 * Allocate blocks to the bitmap file. 792 */ 793 nmap = 1; 794 error = xfs_bmapi_write(tp, ip, oblocks, nblocks - oblocks, |
795 XFS_BMAPI_METADATA, resblks, &map, 796 &nmap); | 795 XFS_BMAPI_METADATA, 0, &map, &nmap); |
797 if (!error && nmap < 1) 798 error = -ENOSPC; 799 if (error) 800 goto out_trans_cancel; 801 /* 802 * Free any blocks freed up in the transaction, then commit. 803 */ 804 error = xfs_trans_commit(tp); --- 503 unchanged lines hidden --- | 796 if (!error && nmap < 1) 797 error = -ENOSPC; 798 if (error) 799 goto out_trans_cancel; 800 /* 801 * Free any blocks freed up in the transaction, then commit. 802 */ 803 error = xfs_trans_commit(tp); --- 503 unchanged lines hidden --- |