X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fnfs_page.h;h=f8b60e7f4c44d9b652a94bca2ab8945130bdb061;hb=2144381da478cc4aa3a29ee29b0c5e6ddaaced14;hp=a1676e19e49170dc41607ae824b5c911c83886c1;hpb=f389e9fcecdec4c4cb890ad28ea30a87a579ec3e;p=~andy%2Flinux diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index a1676e19e49..f8b60e7f4c4 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h @@ -27,15 +27,19 @@ /* * Valid flags for a dirty buffer */ -#define PG_BUSY 0 -#define PG_NEED_COMMIT 1 -#define PG_NEED_RESCHED 2 +enum { + PG_BUSY = 0, + PG_CLEAN, + PG_NEED_COMMIT, + PG_NEED_RESCHED, +}; struct nfs_inode; struct nfs_page { struct list_head wb_list; /* Defines state of page: */ struct page *wb_page; /* page to read in/write out */ struct nfs_open_context *wb_context; /* File state context info */ + struct nfs_lock_context *wb_lock_context; /* lock context info */ atomic_t wb_complete; /* i/os we're waiting for */ pgoff_t wb_index; /* Offset >> PAGE_CACHE_SHIFT */ unsigned int wb_offset, /* Offset & ~PAGE_CACHE_MASK */