aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 1a3ce9e0b495..05b40457e26c 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -41,6 +41,7 @@
41#include <linux/slab.h> 41#include <linux/slab.h>
42#include <linux/cleancache.h> 42#include <linux/cleancache.h>
43#include <linux/mnt_namespace.h> 43#include <linux/mnt_namespace.h>
44#include <linux/ratelimit.h>
44#include "compat.h" 45#include "compat.h"
45#include "delayed-inode.h" 46#include "delayed-inode.h"
46#include "ctree.h" 47#include "ctree.h"
@@ -1290,6 +1291,16 @@ static int btrfs_unfreeze(struct super_block *sb)
1290 return 0; 1291 return 0;
1291} 1292}
1292 1293
1294static void btrfs_fs_dirty_inode(struct inode *inode, int flags)
1295{
1296 int ret;
1297
1298 ret = btrfs_dirty_inode(inode);
1299 if (ret)
1300 printk_ratelimited(KERN_ERR "btrfs: fail to dirty inode %Lu "
1301 "error %d\n", btrfs_ino(inode), ret);
1302}
1303
1293static const struct super_operations btrfs_super_ops = { 1304static const struct super_operations btrfs_super_ops = {
1294 .drop_inode = btrfs_drop_inode, 1305 .drop_inode = btrfs_drop_inode,
1295 .evict_inode = btrfs_evict_inode, 1306 .evict_inode = btrfs_evict_inode,
@@ -1297,7 +1308,7 @@ static const struct super_operations btrfs_super_ops = {
1297 .sync_fs = btrfs_sync_fs, 1308 .sync_fs = btrfs_sync_fs,
1298 .show_options = btrfs_show_options, 1309 .show_options = btrfs_show_options,
1299 .write_inode = btrfs_write_inode, 1310 .write_inode = btrfs_write_inode,
1300 .dirty_inode = btrfs_dirty_inode, 1311 .dirty_inode = btrfs_fs_dirty_inode,
1301 .alloc_inode = btrfs_alloc_inode, 1312 .alloc_inode = btrfs_alloc_inode,
1302 .destroy_inode = btrfs_destroy_inode, 1313 .destroy_inode = btrfs_destroy_inode,
1303 .statfs = btrfs_statfs, 1314 .statfs = btrfs_statfs,