xfs: convert to SPDX license tags
[linux-block.git] / fs / xfs / xfs_iomap.c
index d03e65f01c8949c3fe65354f5ce79afdc712d3cf..99a1a10528859e447bff7c3d1b52c5e032d27c7e 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2000-2006 Silicon Graphics, Inc.
  * Copyright (c) 2016 Christoph Hellwig.
  * All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write the Free Software Foundation,
- * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 #include <linux/iomap.h>
 #include "xfs.h"
@@ -224,7 +212,7 @@ xfs_iomap_write_direct(
         * necessary and move on to transaction setup.
         */
        xfs_iunlock(ip, lockmode);
-       error = xfs_qm_dqattach(ip, 0);
+       error = xfs_qm_dqattach(ip);
        if (error)
                return error;
 
@@ -576,7 +564,7 @@ xfs_file_iomap_begin_delay(
                goto done;
        }
 
-       error = xfs_qm_dqattach_locked(ip, 0);
+       error = xfs_qm_dqattach_locked(ip, false);
        if (error)
                goto out_unlock;
 
@@ -692,7 +680,7 @@ xfs_iomap_write_allocate(
        /*
         * Make sure that the dquots are there.
         */
-       error = xfs_qm_dqattach(ip, 0);
+       error = xfs_qm_dqattach(ip);
        if (error)
                return error;