]> git.hungrycats.org Git - linux/commitdiff
btrfs: get rid of f_dentry use
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 22 Oct 2014 00:21:18 +0000 (20:21 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:16:26 +0000 (08:16 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit ddb52f4fd2184c3405be4b09f7ac9b2bf47d4e61)

fs/btrfs/ioctl.c

index a01fa97595ff0016caa33630e63d3bf4cd7c9f93..d483bd850c148eecab8251aa55c67bc40c721da4 100644 (file)
@@ -5299,7 +5299,7 @@ long btrfs_ioctl(struct file *file, unsigned int
                ret = btrfs_start_delalloc_roots(root->fs_info, 0, -1);
                if (ret)
                        return ret;
-               ret = btrfs_sync_fs(file->f_dentry->d_sb, 1);
+               ret = btrfs_sync_fs(file_inode(file)->i_sb, 1);
                /*
                 * The transaction thread may want to do more work,
                 * namely it pokes the cleaner ktread that will start