コード例 #1
0
/* FIXME: It should be inline function */
void reiserfs_discard_prealloc (struct reiserfs_transaction_handle *th,
                                struct inode * inode)
{
    if (inode->u.reiserfs_i.i_prealloc_count) {
        __discard_prealloc(th, inode);
    }
}
コード例 #2
0
ファイル: bitmap.c プロジェクト: Dronevery/JetsonTK1-kernel
/* FIXME: It should be inline function */
void reiserfs_discard_prealloc (struct reiserfs_transaction_handle *th,
                                struct inode *inode)
{
    struct reiserfs_inode_info *ei = REISERFS_I(inode);
    BUG_ON (!th->t_trans_id);
    if (ei->i_prealloc_count)
        __discard_prealloc(th, ei);
}
コード例 #3
0
ファイル: bitmap.c プロジェクト: liexusong/Linux-2.4.16
void reiserfs_discard_prealloc (struct reiserfs_transaction_handle *th, 
				struct inode * inode)
{
#ifdef CONFIG_REISERFS_CHECK
  if (inode->u.reiserfs_i.i_prealloc_count < 0)
     reiserfs_warning("zam-4001:" __FUNCTION__ ": inode has negative prealloc blocks count.\n");
#endif  
    if (inode->u.reiserfs_i.i_prealloc_count > 0) {
    __discard_prealloc(th, inode);
  }
      }
コード例 #4
0
void reiserfs_discard_all_prealloc (struct reiserfs_transaction_handle *th)
{
    struct list_head * plist = &SB_JOURNAL(th->t_super)->j_prealloc_list;
    struct inode * inode;

    while (!list_empty(plist)) {
        inode = list_entry(plist->next, struct inode, u.reiserfs_i.i_prealloc_list);
#ifdef CONFIG_REISERFS_CHECK
        if (!inode->u.reiserfs_i.i_prealloc_count) {
            reiserfs_warning("zam-4001:%s: inode is in prealloc list but has no preallocated blocks.\n", __FUNCTION__ );
        }
#endif
        __discard_prealloc(th, inode);
    }
}
コード例 #5
0
ファイル: bitmap.c プロジェクト: Dronevery/JetsonTK1-kernel
void reiserfs_discard_all_prealloc (struct reiserfs_transaction_handle *th)
{
    struct list_head * plist = &SB_JOURNAL(th->t_super)->j_prealloc_list;

    BUG_ON (!th->t_trans_id);

    while (!list_empty(plist)) {
        struct reiserfs_inode_info *ei;
        ei = list_entry(plist->next, struct reiserfs_inode_info, i_prealloc_list);
#ifdef CONFIG_REISERFS_CHECK
        if (!ei->i_prealloc_count) {
            reiserfs_warning (th->t_super, "zam-4001:%s: inode is in prealloc list but has no preallocated blocks.", __FUNCTION__);
        }
#endif
        __discard_prealloc(th, ei);
    }
}