Skip to content

Commit c5c3c5f

Browse files
Josef BacikChris Mason
authored andcommitted
Btrfs: remove ->dirty_inode
We do all of our inode updating when we change it, and now that we do ->update_time we don't need ->dirty_inode for atime updates anymore, so just remove it. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
1 parent cbea5ac commit c5c3c5f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

fs/btrfs/super.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,16 +1477,6 @@ static int btrfs_unfreeze(struct super_block *sb)
14771477
return 0;
14781478
}
14791479

1480-
static void btrfs_fs_dirty_inode(struct inode *inode, int flags)
1481-
{
1482-
int ret;
1483-
1484-
ret = btrfs_dirty_inode(inode);
1485-
if (ret)
1486-
printk_ratelimited(KERN_ERR "btrfs: fail to dirty inode %Lu "
1487-
"error %d\n", btrfs_ino(inode), ret);
1488-
}
1489-
14901480
static int btrfs_show_devname(struct seq_file *m, struct dentry *root)
14911481
{
14921482
struct btrfs_fs_info *fs_info = btrfs_sb(root->d_sb);
@@ -1526,7 +1516,6 @@ static const struct super_operations btrfs_super_ops = {
15261516
.show_options = btrfs_show_options,
15271517
.show_devname = btrfs_show_devname,
15281518
.write_inode = btrfs_write_inode,
1529-
.dirty_inode = btrfs_fs_dirty_inode,
15301519
.alloc_inode = btrfs_alloc_inode,
15311520
.destroy_inode = btrfs_destroy_inode,
15321521
.statfs = btrfs_statfs,

0 commit comments

Comments
 (0)