diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 41495dce4db0..34a8b6112ea4 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" |
@@ -1297,6 +1298,16 @@ static int btrfs_unfreeze(struct super_block *sb) | |||
1297 | return 0; | 1298 | return 0; |
1298 | } | 1299 | } |
1299 | 1300 | ||
1301 | static void btrfs_fs_dirty_inode(struct inode *inode, int flags) | ||
1302 | { | ||
1303 | int ret; | ||
1304 | |||
1305 | ret = btrfs_dirty_inode(inode); | ||
1306 | if (ret) | ||
1307 | printk_ratelimited(KERN_ERR "btrfs: fail to dirty inode %Lu " | ||
1308 | "error %d\n", btrfs_ino(inode), ret); | ||
1309 | } | ||
1310 | |||
1300 | static const struct super_operations btrfs_super_ops = { | 1311 | static const struct super_operations btrfs_super_ops = { |
1301 | .drop_inode = btrfs_drop_inode, | 1312 | .drop_inode = btrfs_drop_inode, |
1302 | .evict_inode = btrfs_evict_inode, | 1313 | .evict_inode = btrfs_evict_inode, |
@@ -1304,7 +1315,7 @@ static const struct super_operations btrfs_super_ops = { | |||
1304 | .sync_fs = btrfs_sync_fs, | 1315 | .sync_fs = btrfs_sync_fs, |
1305 | .show_options = btrfs_show_options, | 1316 | .show_options = btrfs_show_options, |
1306 | .write_inode = btrfs_write_inode, | 1317 | .write_inode = btrfs_write_inode, |
1307 | .dirty_inode = btrfs_dirty_inode, | 1318 | .dirty_inode = btrfs_fs_dirty_inode, |
1308 | .alloc_inode = btrfs_alloc_inode, | 1319 | .alloc_inode = btrfs_alloc_inode, |
1309 | .destroy_inode = btrfs_destroy_inode, | 1320 | .destroy_inode = btrfs_destroy_inode, |
1310 | .statfs = btrfs_statfs, | 1321 | .statfs = btrfs_statfs, |