lkml.org 
[lkml]   [2008]   [Apr]   [1]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateTue, 1 Apr 2008 15:08:36 +0300
From"Pekka Enberg" <>
SubjectRe: [RFC PATCH 20/26] UBIFS: add VFS operations
Hi Artem,

On Thu, Mar 27, 2008 at 5:55 PM, Artem Bityutskiy
<Artem.Bityutskiy@nokia.com> wrote:
>  +static int ubifs_set_page_dirty(struct page *page)
>  +{
>  +       /*
>  +        * An attempt to dirty a page without budgeting for it - should not
>  +        * happen.
>  +        */
>  +       ubifs_assert(0);
>  +       return __set_page_dirty_nobuffers(page);
>  +}
>  +
>  +static int ubifs_releasepage(struct page *page, gfp_t unused_gfp_flags)
>  +{
>  +       /*
>  +        * An attempt to release a dirty page without budgeting for it - should
>  +        * not happen.
>  +        */
>  +       ubifs_assert(PageLocked(page));
>  +       if (PageWriteback(page))
>  +               return 0;
>  +       ubifs_assert(PagePrivate(page));
>  +       ubifs_assert(0);
>  +       ClearPagePrivate(page);
>  +       ClearPageChecked(page);
>  +       return 1;
>  +}

So you don't expect the VM to ever call these functions? Why?

                        Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-04-01 12:11    [W:0.158 / U:0.560 seconds]
©2003-2008 Jasper Spaans