~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/linux/nfs_fs.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#define FLUSH_STABLE            4       /* commit to stable storage */
34
34
#define FLUSH_LOWPRI            8       /* low priority background flush */
35
35
#define FLUSH_HIGHPRI           16      /* high priority memory reclaim flush */
 
36
#define FLUSH_COND_STABLE       32      /* conditional stable write - only stable
 
37
                                         * if everything fits in one RPC */
36
38
 
37
39
#ifdef __KERNEL__
38
40
 
93
95
        int error;
94
96
 
95
97
        struct list_head list;
 
98
};
96
99
 
 
100
struct nfs_open_dir_context {
 
101
        struct rpc_cred *cred;
97
102
        __u64 dir_cookie;
 
103
        __u64 dup_cookie;
 
104
        int duped;
98
105
};
99
106
 
100
107
/*
191
198
 
192
199
        /* pNFS layout information */
193
200
        struct pnfs_layout_hdr *layout;
 
201
        atomic_t                commits_outstanding;
194
202
#endif /* CONFIG_NFS_V4*/
195
203
#ifdef CONFIG_NFS_FSCACHE
196
204
        struct fscache_cookie   *fscache;
219
227
#define NFS_INO_FSCACHE         (5)             /* inode can be cached by FS-Cache */
220
228
#define NFS_INO_FSCACHE_LOCK    (6)             /* FS-Cache cookie management lock */
221
229
#define NFS_INO_COMMIT          (7)             /* inode is committing unstable writes */
 
230
#define NFS_INO_PNFS_COMMIT     (8)             /* use pnfs code for commit */
 
231
#define NFS_INO_LAYOUTCOMMIT    (9)             /* layoutcommit required */
222
232
 
223
233
static inline struct nfs_inode *NFS_I(const struct inode *inode)
224
234
{
501
511
extern int  nfs_writepages(struct address_space *, struct writeback_control *);
502
512
extern int  nfs_flush_incompatible(struct file *file, struct page *page);
503
513
extern int  nfs_updatepage(struct file *, struct page *, unsigned int, unsigned int);
504
 
extern int nfs_writeback_done(struct rpc_task *, struct nfs_write_data *);
 
514
extern void nfs_writeback_done(struct rpc_task *, struct nfs_write_data *);
505
515
 
506
516
/*
507
517
 * Try to write back everything synchronously (but check the