ext4: kill unused function ext4_journalled_write_inline_data
authorRitesh Harjani <ritesh.list@gmail.com>
Mon, 15 May 2023 10:40:40 +0000 (16:10 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Jun 2023 04:02:10 +0000 (00:02 -0400)
Commit 3f079114bf522 ("ext4: Convert data=journal writeback to use ext4_writepages()")
Added support for writeback of journalled data into ext4_writepages()
and killed function __ext4_journalled_writepage() which used to call
ext4_journalled_write_inline_data() for inline data.
This function got left over by mistake. Hence kill it's definition as
no one uses it.

Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/122b2a8d5e0650686f23ed6da26ed9e04105562b.1684122756.git.ritesh.list@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/inline.c

index 8104a21b001ae3b9ea3e20f27e36642c73b30248..15abcbe988ec5adb847a5ecc4efbc996fef1d79b 100644 (file)
@@ -3484,10 +3484,6 @@ extern int ext4_write_inline_data_end(struct inode *inode,
                                      loff_t pos, unsigned len,
                                      unsigned copied,
                                      struct page *page);
-extern struct buffer_head *
-ext4_journalled_write_inline_data(struct inode *inode,
-                                 unsigned len,
-                                 struct page *page);
 extern int ext4_da_write_inline_data_begin(struct address_space *mapping,
                                           struct inode *inode,
                                           loff_t pos, unsigned len,
index 5854bd5a33526807dc6194e7043ad16fe4d389f9..c0b2dc6514b255259d96a013e55442edc9f9f30e 100644 (file)
@@ -823,30 +823,6 @@ out:
        return ret ? ret : copied;
 }
 
-struct buffer_head *
-ext4_journalled_write_inline_data(struct inode *inode,
-                                 unsigned len,
-                                 struct page *page)
-{
-       int ret, no_expand;
-       void *kaddr;
-       struct ext4_iloc iloc;
-
-       ret = ext4_get_inode_loc(inode, &iloc);
-       if (ret) {
-               ext4_std_error(inode->i_sb, ret);
-               return NULL;
-       }
-
-       ext4_write_lock_xattr(inode, &no_expand);
-       kaddr = kmap_atomic(page);
-       ext4_write_inline_data(inode, &iloc, kaddr, 0, len);
-       kunmap_atomic(kaddr);
-       ext4_write_unlock_xattr(inode, &no_expand);
-
-       return iloc.bh;
-}
-
 /*
  * Try to make the page cache and handle ready for the inline data case.
  * We can call this function in 2 cases: