X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Freiserfs%2Ftail_conversion.c;h=6191909d5165dc5a1a91de1b98cc7a2584261577;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=0d8a6a6113ccc697062c359a30cd8c0b68ce15c0;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/reiserfs/tail_conversion.c b/fs/reiserfs/tail_conversion.c index 0d8a6a611..6191909d5 100644 --- a/fs/reiserfs/tail_conversion.c +++ b/fs/reiserfs/tail_conversion.c @@ -34,6 +34,7 @@ int direct2indirect (struct reiserfs_transaction_handle *th, struct inode * inod that will be inserted in the tree. */ + BUG_ON (!th->t_trans_id); REISERFS_SB(sb)->s_direct2indirect ++; @@ -184,6 +185,8 @@ int indirect2direct (struct reiserfs_transaction_handle *th, loff_t pos, pos1; /* position of first byte of the tail */ struct cpu_key key; + BUG_ON (!th->t_trans_id); + REISERFS_SB(p_s_sb)->s_indirect2direct ++; *p_c_mode = M_SKIP_BALANCING;