aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 16d9e8e191e6..02d946a61ddd 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4342,7 +4342,7 @@ unsigned char btrfs_filetype_table[] = {
4342static int btrfs_real_readdir(struct file *filp, void *dirent, 4342static int btrfs_real_readdir(struct file *filp, void *dirent,
4343 filldir_t filldir) 4343 filldir_t filldir)
4344{ 4344{
4345 struct inode *inode = filp->f_dentry->d_inode; 4345 struct inode *inode = file_inode(filp);
4346 struct btrfs_root *root = BTRFS_I(inode)->root; 4346 struct btrfs_root *root = BTRFS_I(inode)->root;
4347 struct btrfs_item *item; 4347 struct btrfs_item *item;
4348 struct btrfs_dir_item *di; 4348 struct btrfs_dir_item *di;
@@ -6737,7 +6737,7 @@ static void btrfs_invalidatepage(struct page *page, unsigned long offset)
6737int btrfs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) 6737int btrfs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
6738{ 6738{
6739 struct page *page = vmf->page; 6739 struct page *page = vmf->page;
6740 struct inode *inode = fdentry(vma->vm_file)->d_inode; 6740 struct inode *inode = file_inode(vma->vm_file);
6741 struct btrfs_root *root = BTRFS_I(inode)->root; 6741 struct btrfs_root *root = BTRFS_I(inode)->root;
6742 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; 6742 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
6743 struct btrfs_ordered_extent *ordered; 6743 struct btrfs_ordered_extent *ordered;