super.c (d9b0d9ba04cf99abff9125b688c03e154598a644) | super.c (b02441999efcc6152b87cd58e7970bb7843f76cf) |
---|---|
1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 906 unchanged lines hidden (view full) --- 915 916 trace_btrfs_sync_fs(wait); 917 918 if (!wait) { 919 filemap_flush(fs_info->btree_inode->i_mapping); 920 return 0; 921 } 922 | 1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 906 unchanged lines hidden (view full) --- 915 916 trace_btrfs_sync_fs(wait); 917 918 if (!wait) { 919 filemap_flush(fs_info->btree_inode->i_mapping); 920 return 0; 921 } 922 |
923 btrfs_wait_all_ordered_extents(fs_info); | 923 btrfs_wait_ordered_roots(fs_info, -1); |
924 925 trans = btrfs_attach_transaction_barrier(root); 926 if (IS_ERR(trans)) { 927 /* no transaction, don't bother */ 928 if (PTR_ERR(trans) == -ENOENT) 929 return 0; 930 return PTR_ERR(trans); 931 } --- 991 unchanged lines hidden --- | 924 925 trans = btrfs_attach_transaction_barrier(root); 926 if (IS_ERR(trans)) { 927 /* no transaction, don't bother */ 928 if (PTR_ERR(trans) == -ENOENT) 929 return 0; 930 return PTR_ERR(trans); 931 } --- 991 unchanged lines hidden --- |