ocfs2.h (70ad1ba7b48364d758a112df0823edc5ca6632aa) | ocfs2.h (13723d00e374c2a6d6ccb5af6de965e89c3e1b01) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * ocfs2.h 5 * 6 * Defines macros and structures used in OCFS2 7 * 8 * Copyright (C) 2002, 2004 Oracle. All rights reserved. --- 325 unchanged lines hidden (view full) --- 334 335 struct ocfs2_node_map osb_recovering_orphan_dirs; 336 unsigned int *osb_orphan_wipes; 337 wait_queue_head_t osb_wipe_event; 338}; 339 340#define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) 341 | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * ocfs2.h 5 * 6 * Defines macros and structures used in OCFS2 7 * 8 * Copyright (C) 2002, 2004 Oracle. All rights reserved. --- 325 unchanged lines hidden (view full) --- 334 335 struct ocfs2_node_map osb_recovering_orphan_dirs; 336 unsigned int *osb_orphan_wipes; 337 wait_queue_head_t osb_wipe_event; 338}; 339 340#define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) 341 |
342/* Useful typedef for passing around journal access functions */ 343typedef int (*ocfs2_journal_access_func)(handle_t *handle, struct inode *inode, 344 struct buffer_head *bh, int type); 345 |
|
342static inline int ocfs2_should_order_data(struct inode *inode) 343{ 344 if (!S_ISREG(inode->i_mode)) 345 return 0; 346 if (OCFS2_SB(inode->i_sb)->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK) 347 return 0; 348 return 1; 349} --- 278 unchanged lines hidden --- | 346static inline int ocfs2_should_order_data(struct inode *inode) 347{ 348 if (!S_ISREG(inode->i_mode)) 349 return 0; 350 if (OCFS2_SB(inode->i_sb)->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK) 351 return 0; 352 return 1; 353} --- 278 unchanged lines hidden --- |