summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-08-05 13:30:48 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:06 -0400
commit4ca8b41e3fe76cc5774fbcc6cba64259d69e0f96 (patch)
treef3f0b47dc8a72657105eff6f6b005b8d2d3699cc /fs/btrfs/inode.c
parent7ea394f1192bee1af67ea4762c88ef4b7b0487a8 (diff)
downloadop-kernel-dev-4ca8b41e3fe76cc5774fbcc6cba64259d69e0f96.zip
op-kernel-dev-4ca8b41e3fe76cc5774fbcc6cba64259d69e0f96.tar.gz
Btrfs: Avoid calling into the FS for the final iput on fake root inodes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
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 c33053b..a26d365 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2092,6 +2092,9 @@ int btrfs_write_inode(struct inode *inode, int wait)
struct btrfs_trans_handle *trans;
int ret = 0;
+ if (root->fs_info->closing > 1)
+ return 0;
+
if (wait) {
trans = btrfs_join_transaction(root, 1);
btrfs_set_trans_block_group(trans, inode);
OpenPOWER on IntegriCloud