mirror of
https://github.com/torvalds/linux.git
synced 2025-08-15 14:11:42 +02:00
This pull request contains the following changes for UBI and UBIFS:
UBIFS: - No longer use write_cache_pages() UBI: - Removal of an unused function -----BEGIN PGP SIGNATURE----- iQJKBAABCAA0FiEEdgfidid8lnn52cLTZvlZhesYu8EFAmiJJ9UWHHJpY2hhcmRA c2lnbWEtc3Rhci5hdAAKCRBm+VmF6xi7wf4gEACYUeCKRPJOc6qoCnhsqONKymE/ jVXxCWOBqpoyF0wtt0BXcS46FpXzKufb2U2BHL6j2/v77qXBYv/KenT1PJe9llXH CNoGQb/zgr7cGFULetE12iaTJYxcIyaWfCk1pH7+n8JWeLwTQE66P1PdK5uEzHEp 5gtDyOic8hSIShLBC01/Td9FVRD3A79DhZUP2WDYxsiZGbA93IvE0RpV2x6iBnOG uOzcHAZfnnlO22GoCqcQe5xaqOo3f4mJch6StEDLAs7EN1jvZMSH4wjM6Sbl+R4Z 3rzLE0LwqItVZCA9yBsZWZLvaGWhS44UH6HXiluTh0a6NzSoyOAg2U+4vU3frfbY Kbnum9Rujc3NaVyHHHKmpDWEglj1bk8oN0EXVIOx887JkLjJF0FkSlo+gXp+cA+f C0DpsSdJp6XhJsD60dp4gnas8stISmEN0xs/qgICXMo2WByIZlLtsOgBNwfocD8t PtckkemupulEnSb9GJ/niAJttACSQFI9DCfnZibj3PYu3OeubSD30mJs/SY6rXOR XS9jejSKxdyhyboL9PwuSPVbD2rj/uD/uL8R2ypGbrwNyQGvqUgBQUQjnhNDiOvt CHwCtkmoupWxJscmu34K91zrN19i/9Nw4g+/2SOBz6NvVmIknTtuBQfBL57f2ykq tZlNwdV/e/a2WCx7dg== =/AwZ -----END PGP SIGNATURE----- Merge tag 'ubifs-for-linus-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs Pull UBI and UBIFS updates from Richard Weinberger: "UBIFS: - No longer use write_cache_pages() UBI: - Remove an unused function" * tag 'ubifs-for-linus-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs: ubifs: stop using write_cache_pages mtd: ubi: Remove unused ubi_flush
This commit is contained in:
commit
4522ae2def
3 changed files with 7 additions and 31 deletions
|
@ -791,33 +791,6 @@ int ubi_sync(int ubi_num)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ubi_sync);
|
EXPORT_SYMBOL_GPL(ubi_sync);
|
||||||
|
|
||||||
/**
|
|
||||||
* ubi_flush - flush UBI work queue.
|
|
||||||
* @ubi_num: UBI device to flush work queue
|
|
||||||
* @vol_id: volume id to flush for
|
|
||||||
* @lnum: logical eraseblock number to flush for
|
|
||||||
*
|
|
||||||
* This function executes all pending works for a particular volume id / logical
|
|
||||||
* eraseblock number pair. If either value is set to %UBI_ALL, then it acts as
|
|
||||||
* a wildcard for all of the corresponding volume numbers or logical
|
|
||||||
* eraseblock numbers. It returns zero in case of success and a negative error
|
|
||||||
* code in case of failure.
|
|
||||||
*/
|
|
||||||
int ubi_flush(int ubi_num, int vol_id, int lnum)
|
|
||||||
{
|
|
||||||
struct ubi_device *ubi;
|
|
||||||
int err = 0;
|
|
||||||
|
|
||||||
ubi = ubi_get_device(ubi_num);
|
|
||||||
if (!ubi)
|
|
||||||
return -ENODEV;
|
|
||||||
|
|
||||||
err = ubi_wl_flush(ubi, vol_id, lnum);
|
|
||||||
ubi_put_device(ubi);
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(ubi_flush);
|
|
||||||
|
|
||||||
BLOCKING_NOTIFIER_HEAD(ubi_notifiers);
|
BLOCKING_NOTIFIER_HEAD(ubi_notifiers);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -979,8 +979,7 @@ static int do_writepage(struct folio *folio, size_t len)
|
||||||
* on the page lock and it would not write the truncated inode node to the
|
* on the page lock and it would not write the truncated inode node to the
|
||||||
* journal before we have finished.
|
* journal before we have finished.
|
||||||
*/
|
*/
|
||||||
static int ubifs_writepage(struct folio *folio, struct writeback_control *wbc,
|
static int ubifs_writepage(struct folio *folio, struct writeback_control *wbc)
|
||||||
void *data)
|
|
||||||
{
|
{
|
||||||
struct inode *inode = folio->mapping->host;
|
struct inode *inode = folio->mapping->host;
|
||||||
struct ubifs_info *c = inode->i_sb->s_fs_info;
|
struct ubifs_info *c = inode->i_sb->s_fs_info;
|
||||||
|
@ -1052,7 +1051,12 @@ out_unlock:
|
||||||
static int ubifs_writepages(struct address_space *mapping,
|
static int ubifs_writepages(struct address_space *mapping,
|
||||||
struct writeback_control *wbc)
|
struct writeback_control *wbc)
|
||||||
{
|
{
|
||||||
return write_cache_pages(mapping, wbc, ubifs_writepage, NULL);
|
struct folio *folio = NULL;
|
||||||
|
int error;
|
||||||
|
|
||||||
|
while ((folio = writeback_iter(mapping, wbc, folio, &error)))
|
||||||
|
error = ubifs_writepage(folio, wbc);
|
||||||
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -250,7 +250,6 @@ int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum);
|
||||||
int ubi_leb_map(struct ubi_volume_desc *desc, int lnum);
|
int ubi_leb_map(struct ubi_volume_desc *desc, int lnum);
|
||||||
int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum);
|
int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum);
|
||||||
int ubi_sync(int ubi_num);
|
int ubi_sync(int ubi_num);
|
||||||
int ubi_flush(int ubi_num, int vol_id, int lnum);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function is the same as the 'ubi_leb_read()' function, but it does not
|
* This function is the same as the 'ubi_leb_read()' function, but it does not
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue