diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-12-15 13:43:49 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-12-15 13:43:49 -0500 |
commit | 567a45e917343c952806bb9f5c19aab0139bd519 (patch) | |
tree | b1d6dac31a3a2836d24662139f21bb1ddc2522d3 /fs/btrfs/super.c | |
parent | e755d9ab387c4c2401dce5b6f435432a829f41cb (diff) | |
parent | e65cbb94e036058128a5dec6398be2fd64cf88ba (diff) |
Merge branch 'for-chris' of http://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-work into integration
Conflicts:
fs/btrfs/inode.c
Signed-off-by: Chris Mason <chris.mason@oracle.com>
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, |