aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index c33053ba3816..a26d365111e5 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2092,6 +2092,9 @@ int btrfs_write_inode(struct inode *inode, int wait)
2092 struct btrfs_trans_handle *trans; 2092 struct btrfs_trans_handle *trans;
2093 int ret = 0; 2093 int ret = 0;
2094 2094
2095 if (root->fs_info->closing > 1)
2096 return 0;
2097
2095 if (wait) { 2098 if (wait) {
2096 trans = btrfs_join_transaction(root, 1); 2099 trans = btrfs_join_transaction(root, 1);
2097 btrfs_set_trans_block_group(trans, inode); 2100 btrfs_set_trans_block_group(trans, inode);