PATCH 2/3 rename function mark_pages_dirty()

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

PATCH 2/3 rename function mark_pages_dirty()

Lino Sanfilippo

The mark_pages_dirty() function actually does not mark any pages dirty.
Instead it clears the pages Uptodate flags to indicate that the content
is not longer
This patch renames the function to mark_pages_outdated().

Geschäftsführender Gesellschafter: Tjark Auerbach
Sitz der Gesellschaft: Tettnang
Handelsregister: Amtsgericht Ulm, HRB 630992
Es gelten unsere Allgemeinen Geschäftsbedingungen
(AGB). Sie finden sie in der jeweils gültigen Fassung
im Internet unter

diff -Nurp dazukofs-3.1.4-rc2-patch1/file.c dazukofs-3.1.4-rc2-patch2/file.c
--- dazukofs-3.1.4-rc2-patch1/file.c 2010-11-02 11:56:01.000000000 +0100
+++ dazukofs-3.1.4-rc2-patch2/file.c 2010-11-02 12:07:29.000000000 +0100
@@ -88,10 +88,10 @@ static ssize_t dazukofs_read(struct file
  * Description:
- * Get all existing pages of the given interval that belong to the given
- * file and mark these pages dirty.
+ * Get all existing pages of the given interval of the given
+ * file and clear its "Uptodate" flag.
-static void mark_pages_dirty(struct file *file, size_t count, loff_t pos)
+static void mark_pages_outdated(struct file *file, size_t count, loff_t pos)
  struct page *page;
  pgoff_t start;
@@ -145,7 +145,7 @@ static ssize_t dazukofs_write(struct fil
  * cases (O_APPEND) the file pointer will have been modified
  * subsequently.
- mark_pages_dirty(file, ret, pos_copy - ret);
+ mark_pages_outdated(file, ret, pos_copy - ret);
  fsstack_copy_attr_atime(inode, lower_inode);

Dazuko-devel mailing list
[hidden email]