aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-01-23 17:07:38 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2013-02-22 23:31:31 -0500
commit496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch)
tree8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /fs/ext4/extents.c
parent57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff)
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 5ae1674ec12f..7817ca7c2bbf 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -4386,7 +4386,7 @@ static void ext4_falloc_update_inode(struct inode *inode,
4386 */ 4386 */
4387long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len) 4387long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
4388{ 4388{
4389 struct inode *inode = file->f_path.dentry->d_inode; 4389 struct inode *inode = file_inode(file);
4390 handle_t *handle; 4390 handle_t *handle;
4391 loff_t new_size; 4391 loff_t new_size;
4392 unsigned int max_blocks; 4392 unsigned int max_blocks;
@@ -4643,7 +4643,7 @@ static int ext4_xattr_fiemap(struct inode *inode,
4643 */ 4643 */
4644int ext4_ext_punch_hole(struct file *file, loff_t offset, loff_t length) 4644int ext4_ext_punch_hole(struct file *file, loff_t offset, loff_t length)
4645{ 4645{
4646 struct inode *inode = file->f_path.dentry->d_inode; 4646 struct inode *inode = file_inode(file);
4647 struct super_block *sb = inode->i_sb; 4647 struct super_block *sb = inode->i_sb;
4648 ext4_lblk_t first_block, stop_block; 4648 ext4_lblk_t first_block, stop_block;
4649 struct address_space *mapping = inode->i_mapping; 4649 struct address_space *mapping = inode->i_mapping;