X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fllite_gns.c;h=bea1161b5d586c7f1d1c4458b06871308cf904cf;hp=38cdc532c22509e7c0ba08db666b93c2d962736e;hb=40e5945377e1b71dbd6afeaa10ea17f2b876db86;hpb=e236c288f22935f25a2bddb32c5ecf5503d3b207 diff --git a/lustre/llite/llite_gns.c b/lustre/llite/llite_gns.c index 38cdc53..bea1161 100644 --- a/lustre/llite/llite_gns.c +++ b/lustre/llite/llite_gns.c @@ -109,6 +109,7 @@ int ll_dir_process_mount_object(struct dentry *dentry, struct vfsmount *mnt) } LASSERT(dentry->d_inode != NULL); + LASSERT(S_ISDIR(dentry->d_inode->i_mode)); LASSERT(lld != NULL); sbi = ll_i2sbi(dentry->d_inode); LASSERT(sbi != NULL);