X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fext3%2Fnamei.c;fp=fs%2Fext3%2Fnamei.c;h=001dea3a9f41926915d2f8e848222165e65378f3;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=38e74158e3080360c4ff052c3ef00362fe46889a;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 38e74158e..001dea3a9 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c @@ -1401,6 +1401,7 @@ static int ext3_add_entry (handle_t *handle, struct dentry *dentry, int dx_fallback=0; #endif unsigned blocksize; + unsigned nlen, rlen; u32 block, blocks; sb = dir->i_sb; @@ -1438,7 +1439,8 @@ static int ext3_add_entry (handle_t *handle, struct dentry *dentry, return retval; de = (struct ext3_dir_entry_2 *) bh->b_data; de->inode = 0; - de->rec_len = cpu_to_le16(blocksize); + de->rec_len = cpu_to_le16(rlen = blocksize); + nlen = 0; return add_dirent_to_buf(handle, dentry, inode, de, bh); } @@ -1930,8 +1932,8 @@ int ext3_orphan_add(handle_t *handle, struct inode *inode) if (!err) list_add(&EXT3_I(inode)->i_orphan, &EXT3_SB(sb)->s_orphan); - jbd_debug(4, "superblock will point to %lu\n", inode->i_ino); - jbd_debug(4, "orphan inode %lu will point to %d\n", + jbd_debug(4, "superblock will point to %ld\n", inode->i_ino); + jbd_debug(4, "orphan inode %ld will point to %d\n", inode->i_ino, NEXT_ORPHAN(inode)); out_unlock: unlock_super(sb);