X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Freiserfs%2Fnamei.c;h=3549067c42d941546f4fa12ad266612a9f9f4413;hb=96b88fb850cc419171f926ad04650ec509e9f543;hp=a20bbc1642dcdac2f4cfa608db569eb46e2ea66d;hpb=c514720716c7b109ff980f8b3cb93f9af872c91c;p=linux-2.6-omap-h63xx.git diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c index a20bbc1642d..3549067c42d 100644 --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c @@ -593,6 +593,9 @@ static int new_inode_init(struct inode *inode, struct inode *dir, int mode) */ inode->i_uid = current->fsuid; inode->i_mode = mode; + /* Make inode invalid - just in case we are going to drop it before + * the initialization happens */ + INODE_PKEY(inode)->k_objectid = 0; if (dir->i_mode & S_ISGID) { inode->i_gid = dir->i_gid;