fs/ntfs3: Remove unused function
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 16 May 2024 17:37:53 +0000 (20:37 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 7 Jun 2024 11:30:58 +0000 (14:30 +0300)
At the moment, the function turned out to be unused, so I removed it.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/inode.c
fs/ntfs3/ntfs_fs.h

index 0f1664db94ad9ae0116c1613a8312453270ea1f2..6dc51faeef8df684d427ed1f33e54976a48dfe48 100644 (file)
@@ -1097,36 +1097,6 @@ int ntfs_flush_inodes(struct super_block *sb, struct inode *i1,
        return ret;
 }
 
-int inode_write_data(struct inode *inode, const void *data, size_t bytes)
-{
-       pgoff_t idx;
-
-       /* Write non resident data. */
-       for (idx = 0; bytes; idx++) {
-               size_t op = bytes > PAGE_SIZE ? PAGE_SIZE : bytes;
-               struct page *page = ntfs_map_page(inode->i_mapping, idx);
-
-               if (IS_ERR(page))
-                       return PTR_ERR(page);
-
-               lock_page(page);
-               WARN_ON(!PageUptodate(page));
-               ClearPageUptodate(page);
-
-               memcpy(page_address(page), data, op);
-
-               flush_dcache_page(page);
-               SetPageUptodate(page);
-               unlock_page(page);
-
-               ntfs_unmap_page(page);
-
-               bytes -= op;
-               data = Add2Ptr(data, PAGE_SIZE);
-       }
-       return 0;
-}
-
 /*
  * ntfs_reparse_bytes
  *
index f9ed6d2b065ddd9cb05da0c74925177da292c072..ee0c1b76e8124fb0ed4f54687a593a10182ae5e0 100644 (file)
@@ -716,7 +716,6 @@ int ntfs3_write_inode(struct inode *inode, struct writeback_control *wbc);
 int ntfs_sync_inode(struct inode *inode);
 int ntfs_flush_inodes(struct super_block *sb, struct inode *i1,
                      struct inode *i2);
-int inode_write_data(struct inode *inode, const void *data, size_t bytes);
 int ntfs_create_inode(struct mnt_idmap *idmap, struct inode *dir,
                      struct dentry *dentry, const struct cpu_str *uni,
                      umode_t mode, dev_t dev, const char *symname, u32 size,