dazuko-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dazuko-devel] PATCH 2/3 rename function mark_pages_dirty()


From: Lino Sanfilippo
Subject: [Dazuko-devel] PATCH 2/3 rename function mark_pages_dirty()
Date: Tue, 02 Nov 2010 12:37:23 +0100
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)



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
valid.
This patch renames the function to mark_pages_outdated().


Geschäftsführender Gesellschafter: Tjark Auerbach
Sitz der Gesellschaft: Tettnang
Handelsregister: Amtsgericht Ulm, HRB 630992
ALLGEMEINE GESCHÄFTSBEDINGUNGEN
Es gelten unsere Allgemeinen Geschäftsbedingungen
(AGB). Sie finden sie in der jeweils gültigen Fassung
im Internet unter http://www.avira.com/de/standard-terms-conditions-business-de
***************************************************
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);
        }
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]