[CIFS] Fix readdir breakage when blocksize set too small

Do not treat filldir running out of space as an error that needs
to be returned.

Fixes Redhat bugzilla bug # 211070

Signed-off-by: Steve French <sfrench@us.ibm.com>

+9
+9
fs/cifs/readdir.c
··· 896 896 tmp_inode->i_ino,obj_type); 897 897 if(rc) { 898 898 cFYI(1,("filldir rc = %d",rc)); 899 + /* we can not return filldir errors to the caller 900 + since they are "normal" when the stat blocksize 901 + is too small - we return remapped error instead */ 902 + rc = -EOVERFLOW; 899 903 } 900 904 901 905 dput(tmp_dentry); ··· 1078 1074 we want to check for that here? */ 1079 1075 rc = cifs_filldir(current_entry, file, 1080 1076 filldir, direntry, tmp_buf, max_len); 1077 + if(rc == -EOVERFLOW) { 1078 + rc = 0; 1079 + break; 1080 + } 1081 + 1081 1082 file->f_pos++; 1082 1083 if(file->f_pos == 1083 1084 cifsFile->srch_inf.index_of_last_entry) {