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

« back to all changes in this revision

Viewing changes to fs/xfs/xfs_trans.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
                                                 struct xfs_log_item *);
327
327
                                                        /* buffer item iodone */
328
328
                                                        /* callback func */
329
 
        struct xfs_item_ops             *li_ops;        /* function list */
 
329
        const struct xfs_item_ops       *li_ops;        /* function list */
330
330
 
331
331
        /* delayed logging */
332
332
        struct list_head                li_cil;         /* CIL pointers */
341
341
        { XFS_LI_IN_AIL,        "IN_AIL" }, \
342
342
        { XFS_LI_ABORTED,       "ABORTED" }
343
343
 
344
 
typedef struct xfs_item_ops {
 
344
struct xfs_item_ops {
345
345
        uint (*iop_size)(xfs_log_item_t *);
346
346
        void (*iop_format)(xfs_log_item_t *, struct xfs_log_iovec *);
347
347
        void (*iop_pin)(xfs_log_item_t *);
352
352
        void (*iop_push)(xfs_log_item_t *);
353
353
        bool (*iop_pushbuf)(xfs_log_item_t *);
354
354
        void (*iop_committing)(xfs_log_item_t *, xfs_lsn_t);
355
 
} xfs_item_ops_t;
 
355
};
356
356
 
357
357
#define IOP_SIZE(ip)            (*(ip)->li_ops->iop_size)(ip)
358
358
#define IOP_FORMAT(ip,vp)       (*(ip)->li_ops->iop_format)(ip, vp)
470
470
void            xfs_trans_dquot_buf(xfs_trans_t *, struct xfs_buf *, uint);
471
471
void            xfs_trans_inode_alloc_buf(xfs_trans_t *, struct xfs_buf *);
472
472
void            xfs_trans_ichgtime(struct xfs_trans *, struct xfs_inode *, int);
473
 
void            xfs_trans_ijoin_ref(struct xfs_trans *, struct xfs_inode *, uint);
474
 
void            xfs_trans_ijoin(struct xfs_trans *, struct xfs_inode *);
 
473
void            xfs_trans_ijoin(struct xfs_trans *, struct xfs_inode *, uint);
475
474
void            xfs_trans_log_buf(xfs_trans_t *, struct xfs_buf *, uint, uint);
476
475
void            xfs_trans_log_inode(xfs_trans_t *, struct xfs_inode *, uint);
477
476
struct xfs_efi_log_item *xfs_trans_get_efi(xfs_trans_t *, uint);
487
486
                                         struct xfs_efd_log_item *,
488
487
                                         xfs_fsblock_t,
489
488
                                         xfs_extlen_t);
490
 
int             _xfs_trans_commit(xfs_trans_t *,
491
 
                                  uint flags,
492
 
                                  int *);
493
 
#define xfs_trans_commit(tp, flags)     _xfs_trans_commit(tp, flags, NULL)
 
489
int             xfs_trans_commit(xfs_trans_t *, uint flags);
494
490
void            xfs_trans_cancel(xfs_trans_t *, int);
495
491
int             xfs_trans_ail_init(struct xfs_mount *);
496
492
void            xfs_trans_ail_destroy(struct xfs_mount *);